-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
144 lines (135 loc) · 6 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
138
139
140
141
142
143
144
language: php
php:
- 5.6
- 7.0
- 7.1
- hhvm
env:
global:
- DEFAULT=1
matrix:
- DB=pgsql DB_DSN='postgres://postgres@127.0.0.1/cakephp_test' CAKE_VERSION='3.3.*'
- DB=sqlite DB_DSN='sqlite:///:memory:' CAKE_VERSION='3.3.*'
- DB=pgsql DB_DSN='postgres://postgres@127.0.0.1/cakephp_test' CAKE_VERSION='3.4.*'
- DB=sqlite DB_DSN='sqlite:///:memory:' CAKE_VERSION='3.4.*'
- DB=pgsql DB_DSN='postgres://postgres@127.0.0.1/cakephp_test' CAKE_VERSION='3.5.*'
- DB=sqlite DB_DSN='sqlite:///:memory:' CAKE_VERSION='3.5.*'
- DB=pgsql DB_DSN='postgres://postgres@127.0.0.1/cakephp_test' CAKE_VERSION='dev-3.next'
- DB=sqlite DB_DSN='sqlite:///:memory:' CAKE_VERSION='dev-3.next'
matrix:
fast_finish: true
allow_failures:
- php: hhvm
- php: 7.0
env: PHPCS=1 DEFAULT=0
- php: 5.6
env: CAKE_VERSION='dev-3.next'
- php: 7.0
env: CAKE_VERSION='dev-3.next'
- php: 7.1
env: CAKE_VERSION='dev-3.next'
- php: 5.6
env: CAKE_VERSION='dev-3.4.*'
- php: 7.0
env: CAKE_VERSION='dev-3.4.*'
- php: 7.1
env: CAKE_VERSION='dev-3.4.*'
include:
- php: 5.6
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.3.*'
addons:
mariadb: '10.1'
- php: 7.0
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.3.*'
addons:
mariadb: '10.1'
- php: 7.1
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.3.*'
addons:
mariadb: '10.1'
- php: hhvm
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.3.*'
addons:
mariadb: '10.1'
- php: 5.6
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.4.*'
addons:
mariadb: '10.1'
- php: 7.0
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.4.*'
addons:
mariadb: '10.1'
- php: 7.1
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.4.*'
addons:
mariadb: '10.1'
- php: hhvm
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.4.*'
addons:
mariadb: '10.1'
- php: 5.6
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.5.*'
addons:
mariadb: '10.1'
- php: 7.0
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.5.*'
addons:
mariadb: '10.1'
- php: 7.1
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.5.*'
addons:
mariadb: '10.1'
- php: hhvm
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='3.5.*'
addons:
mariadb: '10.1'
- php: 5.6
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='dev-3.next'
addons:
mariadb: '10.1'
- php: 7.0
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='dev-3.next'
addons:
mariadb: '10.1'
- php: 7.1
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='dev-3.next'
addons:
mariadb: '10.1'
- php: hhvm
env: DB=mysql DB_DSN='mysql://travis@0.0.0.0/cakephp_test' CAKE_VERSION='dev-3.next'
addons:
mariadb: '10.1'
- php: 7.0
env: PHPCS=1 DEFAULT=0
exclude:
- php: hhvm
env: DB=pgsql
before_install:
- printenv || true
- cd ../../
- travis_retry composer create-project cakephp/app=$CAKE_VERSION test --no-interaction -s dev
- cd test && cd vendor && mkdir multidimensional && cd multidimensional
- mkdir cakephpify && cd ../../../
- mv multidimension-al/cakephpify test/vendor/multidimensional
- cd test && bin/cake || true
- travis_retry composer require "multidimensional/cakephpify:dev-$TRAVIS_BRANCH#$TRAVIS_COMMIT" --no-interaction
- if [[ $DEFAULT = 1 ]] ; then travis_retry composer require "cakephp/migrations:>=1.2.0-stable" --no-interaction --prefer-stable ; fi
- if [[ $DEFAULT = 1 && $CAKE_VERSION != '3.3.*' && $TRAVIS_PHP_VERSION != 5.6 ]] ; then travis_retry composer require phpunit/phpunit:^6.0 --no-interaction --prefer-stable ; else travis_retry composer require phpunit/phpunit:^5.6 --no-interaction --prefer-stable ; fi
- if [[ $PHPCS = 1 ]] ; then travis_retry composer require "cakephp/cakephp-codesniffer" --no-interaction --prefer-stable ; fi
- if [[ $PHPCS = 1 ]] ; then ./vendor/bin/phpcs --config-set installed_paths /home/travis/build/test/vendor/cakephp/cakephp-codesniffer ; fi
- mv -f ./vendor/multidimensional/cakephpify/tests/phpunit.xml.dist ./
- if [[ $DB = 'mysql' ]] ; then mysql -e 'CREATE DATABASE cakephp_test;'; fi
- if [[ $DB = 'pgsql' ]] ; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi
before_script:
- travis_retry composer dump-autoload --no-interaction
- travis_retry composer update --no-interaction
script:
- if [[ $PHPCS = 1 ]] ; then ./vendor/bin/phpcs --standard=CakePHP ./vendor/multidimensional/cakephpify/ ; fi
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 && $TRAVIS_PHP_VERSION != 7.1 && $TRAVIS_PHP_VERSION != 'hhvm' ]] ; then ./vendor/bin/phpunit --coverage-text --coverage-clover=vendor/multidimensional/cakephpify/coverage.clover ; fi
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 5.6 ]] ; then ./vendor/bin/phpunit ; fi
after_script:
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 && $TRAVIS_PHP_VERSION != 7.1 && $TRAVIS_PHP_VERSION != 'hhvm' && $CAKE_VERSION != 'dev-3.next' ]] ; then cd vendor/multidimensional/cakephpify/ ; fi
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 && $TRAVIS_PHP_VERSION != 7.1 && $TRAVIS_PHP_VERSION != 'hhvm' && $CAKE_VERSION != 'dev-3.next' ]] ; then wget https://scrutinizer-ci.com/ocular.phar ; fi
- if [[ $DEFAULT = 1 && $TRAVIS_PHP_VERSION != 7.0 && $TRAVIS_PHP_VERSION != 7.1 && $TRAVIS_PHP_VERSION != 'hhvm' && $CAKE_VERSION != 'dev-3.next' ]] ; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover ; fi
notifications:
email: false