This repository has been archived by the owner on Nov 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
/
.travis.yml
93 lines (81 loc) · 3.02 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
language: php
sudo: required
php:
- 5.6
- 7.0
- 7.1
- 7.2
env:
- GROUP=import
- GROUP=requiresKernel,requiresDoctrine,requiresClient
- GROUP=default,dependsOn,requiresSqlite EXCLUDE_GROUP=import,requiresKernel,requiresDoctrine,requiresClient
cache:
directories:
- $HOME/.composer/cache
- $HOME/.cache/bower
- node_modules
- $HOME/.npm
before_install:
- nvm install node
install:
- composer install --prefer-dist --no-interaction
before_script:
- cp app/config/default_config.yml data/config.yml
- mkdir -p build/logs
- 'if [ $(phpenv version-name) != "7.0" ] || [ "$DB" == "mariadb" ]; then phpenv config-rm xdebug.ini; fi'
- mysql -uroot -e 'SET @@global.sql_mode = TRADITIONAL; CREATE DATABASE runalyze_unittest; CREATE DATABASE runalyze_test;';
- php bin/console --env=test doctrine:schema:update --force --complete
- mysql runalyze_unittest < inc/install/structure.sql
- mysql -e "SET GLOBAL wait_timeout = 36000;"
- mysql -e "SET GLOBAL max_allowed_packet = 134209536;"
- mysql -e "SHOW VARIABLES LIKE 'max_allowed_packet';"
- mysql -e "SHOW VARIABLES LIKE 'wait_timeout';"
script:
- 'if [ $(phpenv version-name) != "7.0" ] || [ "$DB" == "mariadb" ]; then vendor/bin/phpunit --colors -c tests/config.xml --group "$GROUP" --exclude-group "dependsOnSRTM,dependsOnTimezoneDatabase,$EXCLUDE_GROUP"; fi'
- 'if [ $(phpenv version-name) == "7.0" ] && [ "$DB" != "mariadb" ]; then vendor/bin/phpunit --colors -c tests/config.xml --coverage-clover build/logs/clover.xml --group "$GROUP" --exclude-group "dependsOnSRTM,dependsOnTimezoneDatabase,$EXCLUDE_GROUP"; fi'
after_script:
- 'if [ $(phpenv version-name) == "7.0" ] && [ "$DB" != "mariadb" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml; fi'
matrix:
fast_finish: true
allow_failures:
- php: 7.1
- php: 7.2
include:
- php: 5.6
env: DB=mariadb GROUP=requiresDoctrine,dependsOnOldDatabase
addons:
mariadb: 5.5
- php: 7.0
env: DB=mariadb GROUP=requiresDoctrine,dependsOnOldDatabase
addons:
mariadb: 5.5
- php: 7.1
env: DB=mariadb GROUP=requiresDoctrine,dependsOnOldDatabase
addons:
mariadb: 5.5
- php: 7.2
env: DB=mariadb GROUP=requiresDoctrine,dependsOnOldDatabase
addons:
mariadb: 5.5
- php: 5.6
env: DB=mariadb GROUP=requiresDoctrine,dependsOnOldDatabase
addons:
mariadb: 10.0
- php: 7.0
env: DB=mariadb GROUP=requiresDoctrine,dependsOnOldDatabase
addons:
mariadb: 10.0
- php: 7.1
env: DB=mariadb GROUP=requiresDoctrine,dependsOnOldDatabase
addons:
mariadb: 10.0
- php: 7.2
env: DB=mariadb GROUP=requiresDoctrine,dependsOnOldDatabase
addons:
mariadb: 10.0
- stage: deploy
php: 7.0
before_script: skip
script:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then chmod +x bin/travis_build.sh | bin/travis_build.sh; fi'
after_script: skip