File tree 1 file changed +13
-18
lines changed
1 file changed +13
-18
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
+ services :
4
+ - postgresql
5
+ - mysql
6
+
3
7
php :
4
8
- 7.2
5
9
- 7.3
8
12
sudo : false
9
13
10
14
env :
11
- -
DB=mysql db_dsn='mysql://[email protected] /cakephp_test'
12
- -
DB=pgsql db_dsn='postgres://[email protected] /cakephp_test'
13
- - DB=sqlite
15
+ matrix :
16
+ -
DB=mysql DB_DSN='mysql://[email protected] /cakephp_test'
17
+ -
DB=pgsql DB_DSN='postgres://[email protected] /cakephp_test'
18
+ - DB=sqlite DB_DSN='sqlite:///:memory:'
14
19
15
20
matrix :
16
21
fast_finish : true
17
- include :
18
- - php : 7.2
19
- env : COVERAGE=1
22
+
23
+ before_install :
24
+ - if [[ $DB == 'mysql' ]]; then mysql -u root -e 'CREATE DATABASE cakephp_test;'; fi
25
+ - if [[ $DB == 'pgsql' ]]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi
20
26
21
27
install :
22
- - composer self-update
23
28
- composer install --prefer-dist --no-interaction
24
29
25
- before_script :
26
- - if [[ $DB == 'mysql' ]]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi
27
- - if [[ $DB == 'pgsql' ]]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi
28
- - phpenv rehash
29
- - set +H
30
-
31
30
script :
32
- - if [[ $COVERAGE == 1 ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi
33
- - if [[ $COVERAGE != 1 ]]; then vendor/bin/phpunit; fi
34
-
35
- after_success :
36
- - if [[ $COVERAGE == 1 ]]; then bash <(curl -s https://codecov.io/bash); fi
31
+ - vendor/bin/phpunit
37
32
38
33
notifications :
39
34
email : false
You can’t perform that action at this time.
0 commit comments