forked from pimcore/pimcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (51 loc) · 1.16 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
notifications:
email:
sudo: false
language: php
php:
- 7
- 7.1
services:
- redis
addons:
mariadb: '10.1'
hosts:
- pimcore-test.dev
matrix:
include:
- os: linux
sudo: required
php: 7
env:
- PIMCORE_TEST_SUITE=rest PIMCORE_TEST_ENV=http
- os: linux
sudo: required
php: 7.1
env:
- PIMCORE_TEST_SUITE=rest PIMCORE_TEST_ENV=http
cache:
directories:
- vendor
env:
global:
- PIMCORE_ENVIRONMENT=test
- PIMCORE_TEST=1
- PIMCORE_TEST_URL=http://pimcore-test.dev
- PIMCORE_TEST_DB_DSN="mysql://root@localhost/pimcore_test"
- PIMCORE_TEST_CACHE_REDIS_DATABASE=1
before_install:
- mysql --version
- mysql -e "CREATE DATABASE pimcore_test;"
install:
# add config templates
- mkdir -p var/config
- cp .travis/system.template.php var/config/system.php
- cp .travis/extensions.template.php var/config/extensions.php
- cp app/config/parameters.example.yml app/config/parameters.yml
- composer install
before_script:
- .travis/setup-php.sh
- if [[ "$TRAVIS_SUDO" == "true" ]]; then .travis/setup-sudo.sh; fi
script:
- .travis/run-tests.sh