Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ language: php

php:
- 7.2
- 7.3
- 7.4
- 'nightly'

env:
global:
Expand All @@ -19,14 +19,19 @@ matrix:
- php: 7.2
env: STATIC_ANALYSIS=1 DEFAULT=0

before_script:
- composer update --no-interaction

- if [[ $STATIC_ANALYSIS == 1 ]]; then composer stan-setup; fi
install:
- |
if [[ $TRAVIS_PHP_VERSION == 'nightly' ]]; then
composer install --no-interaction --ignore-platform-reqs
elif [[ $STATIC_ANALYSIS == 1 ]]; then
composer stan-setup
else
composer install
fi

script:
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION != 7.3 ]]; then vendor/bin/phpunit; fi
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.3 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION != 7.4 ]]; then vendor/bin/phpunit; fi
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.4 ]]; then vendor/bin/phpunit --coverage-clover=clover.xml; fi

- |
if [[ $STATIC_ANALYSIS == 1 ]]; then
Expand All @@ -36,7 +41,7 @@ script:
- if [[ $PHPCS == 1 ]]; then composer cs-check; fi

after_success:
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.3 ]]; then bash <(curl -s https://codecov.io/bash); fi
- if [[ $DEFAULT == 1 && $TRAVIS_PHP_VERSION == 7.4 ]]; then bash <(curl -s https://codecov.io/bash); fi

notifications:
email: false
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"require-dev": {
"cakephp/cakephp-codesniffer": "^4.0",
"phpunit/phpunit": "~8.5.0",
"phpunit/phpunit": "^8.5 || ^9.3",
"cakephp/bake": "^2.0"
},
"autoload": {
Expand Down