Skip to content

Commit

Permalink
Merge e23501c into be2da74
Browse files Browse the repository at this point in the history
  • Loading branch information
othercorey committed Jul 17, 2020
2 parents be2da74 + e23501c commit 608487c
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ services:
- postgresql
- mysql

addons:
postgresql: "9.6"

php:
- 7.2
- 7.4

env:
Expand All @@ -25,9 +21,13 @@ matrix:
include:
- php: 7.2
env: PREFER_LOWEST=1 CODECOVERAGE=0
- php: nightly
env: SQLITE_DSN='sqlite:///phinx' CODECOVERAGE=0

allow_failures:
- php: nightly

- php: 7.4
env: CHECKS=1 CODECOVERAGE=0
fast_finish: true

before_install:
- if [[ $MYSQL_DSN ]]; then mysql -e 'create database phinx;'; fi
Expand All @@ -43,17 +43,22 @@ before_install:
- phpenv config-rm xdebug.ini

install:
- if [[ $PREFER_LOWEST != 1 ]]; then travis_retry composer update --no-interaction --prefer-stable; fi
- if [[ $PREFER_LOWEST == 1 ]]; then travis_retry composer update --no-interaction --prefer-stable --prefer-lowest; fi

- if [[ $CHECKS == 1 ]]; then composer require --dev phpstan/phpstan:^0.12; fi
- |
if [[ $PREFER_LOWEST == 1 ]]; then
composer update --no-interaction --prefer-stable
elif [[ $TRAVIS_PHP_VERSION == 'nightly' ]]; then
composer install --no-interaction --ignore-platform-reqs
else
composer update --no-interaction --prefer-stable --prefer-lowest
fi
script:
- if [[ $CODECOVERAGE == 1 ]]; then vendor/bin/phpunit --verbose --coverage-clover=clover.xml; fi
- if [[ $PREFER_LOWEST == 1 ]]; then vendor/bin/phpunit --verbose; fi

- if [[ $CHECKS == 1 ]]; then composer stan; fi
- if [[ $CHECKS == 1 ]]; then composer cs-check; fi
- |
if [[ $CODECOVERAGE == 1 ]]; then
vendor/bin/phpunit --verbose --coverage-clover=clover.xml
else
vendor/bin/phpunit --verbose
fi
after_success:
- |
Expand Down

0 comments on commit 608487c

Please sign in to comment.