Skip to content

Commit

Permalink
Simplify travis matrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Apr 19, 2018
1 parent eed4385 commit 991c6ea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ php:
env:
matrix:
- DB=mysql db_dsn='mysql://root@127.0.0.1/cakephp_test'
- DB=pgsql db_dsn='postgres://postgres@127.0.0.1/cakephp_test'
- DB=sqlite db_dsn='sqlite:///:memory:'
global:
- DEFAULT=1

Expand All @@ -21,17 +19,19 @@ matrix:

include:
- php: 7.1
env: PHPCS=1 DEFAULT=0
- env: DB=pgsql db_dsn='postgres://postgres@127.0.0.1/cakephp_test'

- php: 7.1
env: CODECOVERAGE=1 DEFAULT=0
- env: DB=sqlite db_dsn='sqlite:///:memory:'

- php: 5.6
env: PREFER_LOWEST=1

allow_failures:
- env: DB=sqlite db_dsn='sqlite:///:memory:'
- env: DB=pgsql db_dsn='postgres://postgres@127.0.0.1/cakephp_test'
- php: 7.1
env: PHPCS=1 DEFAULT=0

- php: 7.1
env: CODECOVERAGE=1 DEFAULT=0

before_script:
- if [[ $PREFER_LOWEST != 1 ]]; then composer install --prefer-source --no-interaction ; fi
Expand All @@ -48,7 +48,7 @@ before_script:

script:
- sh -c "if [ '$DEFAULT' = '1' ]; then vendor/bin/phpunit; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/fig-r/psr2r-sniffer/PSR2R/ruleset.xml --ignore=vendor/,docs/ -v . ; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then composer cs-check; fi"

- if [[ $CODECOVERAGE == 1 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml || true; fi
- if [[ $CODECOVERAGE == 1 ]]; then wget -O codecov.sh https://codecov.io/bash; fi
Expand Down

0 comments on commit 991c6ea

Please sign in to comment.