forked from pimcore/pimcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
137 lines (117 loc) · 2.77 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
notifications:
email:
sudo: false
language: php
services:
- redis
addons:
mariadb: '10.3'
hosts:
- pimcore-test.dev
matrix:
include:
# Symfony 3.4 all tests
- os: linux
sudo: required
php: 7.2
- os: linux
sudo: required
php: 7.3
# Symfony 4.* all tests
- os: linux
sudo: required
php: 7.2
env:
- SYMFONY_VERSION="^4.0"
- os: linux
sudo: required
php: 7.3
env:
- SYMFONY_VERSION="^4.0"
# Other Tests
- os: linux
sudo: required
php: 7.2
env:
- PIMCORE_TEST_SUITE=rest
- PIMCORE_TEST_ENV=http
- os: linux
sudo: required
php: 7.3
env:
- PIMCORE_TEST_SUITE=rest
- PIMCORE_TEST_ENV=http
- os: linux
php: 7.2
env:
- PIMCORE_TEST_SUITE=cache
- PIMCORE_TEST_GROUP=cache.core.redis
- PIMCORE_TEST_SETUP_SKIP_PHP_REDIS_EXTENSION=true
# Test Stan
- os: linux
php: 7.2
env:
- TASK_TESTS=0
- TASK_STAN=1
- os: linux
php: 7.3
env:
- TASK_TESTS=0
- TASK_STAN=1
# Test Stan Symfony ^4.0
- os: linux
php: 7.2
env:
- TASK_TESTS=0
- TASK_STAN=1
- SYMFONY_VERSION="^4.0"
- os: linux
php: 7.3
env:
- TASK_TESTS=0
- TASK_STAN=1
- SYMFONY_VERSION="^4.0"
# Test Docs
- os: linux
php: 7.2
env:
- TASK_TESTS=0
- TASK_DOCS=1
cache:
directories:
- tmp-docs/pimcore-docs/vendor
fast_finish: true
cache:
directories:
- $HOME/.cache/composer
env:
global:
- COMPOSER_MEMORY_LIMIT=-1
- TASK_TESTS=1
- TASK_STAN=0
- TASK_DOCS=0
- 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
- SYMFONY_VERSION=^3.4
- PIMCORE_PROJECT_ROOT=$TRAVIS_BUILD_DIR
before_install:
- mysql --version
- mysql -e "CREATE DATABASE pimcore_test CHARSET=utf8mb4;"
install:
- if [ $TASK_TESTS == 1 ]; then .travis/setup-tests.sh; fi
- if [ $TASK_STAN == 1 ]; then .travis/setup-tests.sh; fi
- if [ $TASK_DOCS == 1 ]; then .travis/setup-docs.sh; fi
before_script:
- yes | pecl install imagick
- phpenv config-rm xdebug.ini
- if [ $TASK_TESTS == 1 ]; then .travis/setup-php.sh; fi
- if [ $TASK_TESTS == 1 ]; then .travis/setup-functional-tests.sh; fi
- if [ $TASK_STAN == 1 ]; then .travis/setup-php.sh; fi
script:
- if [ $TASK_TESTS == 1 ]; then .travis/run-tests.sh; fi
- if [ $TASK_DOCS == 1 ]; then .travis/run-docs.sh; fi
- if [ $TASK_STAN == 1 ]; then .travis/run-stan.sh; fi