-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93a3c13
commit c23578a
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
language: php | ||
|
||
dist: xenial | ||
|
||
php: | ||
- 7.2 | ||
- 7.3 | ||
|
||
sudo: false | ||
|
||
services: | ||
- postgresql | ||
- mysql | ||
|
||
cache: | ||
directories: | ||
- vendor | ||
- $HOME/.composer/cache | ||
|
||
env: | ||
matrix: | ||
- DB=mysql db_dsn='mysql://[email protected]/cakephp_test' | ||
- DB=mysql db_dsn='mysql://[email protected]/cakephp_test?init[]=SET sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"' | ||
- DB=pgsql db_dsn='postgres://[email protected]/cakephp_test' | ||
- DB=sqlite db_dsn='sqlite:///:memory:' | ||
|
||
|
@@ -31,10 +42,10 @@ matrix: | |
before_script: | ||
- if [[ $TRAVIS_PHP_VERSION != 7.3 ]]; then phpenv config-rm xdebug.ini; fi | ||
- composer install --prefer-dist --no-interaction | ||
- if [ $DB = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi | ||
- if [ $DB = 'pgsql' ]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi | ||
- if [[ $DB == 'mysql' ]]; then mysql -u root -e 'CREATE DATABASE cakephp_test;'; fi | ||
- if [[ $DB == 'pgsql' ]]; then psql -c 'CREATE DATABASE cakephp_test;' -U postgres; fi | ||
- if [[ $PHPSTAN = 1 ]]; then composer stan-setup; fi | ||
|
||
script: | ||
- if [[ $DEFAULT = 1 ]]; then composer test; fi | ||
- if [[ $COVERAGE = 1 ]]; then composer coverage-test; fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters