diff --git a/.travis.yml b/.travis.yml index 995542c..b97387b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,24 +4,36 @@ language: php os: - linux -php: - - '7.4' - - nightly - jobs: - allow_failures: + include: + - php: 7.4 - php: nightly + env: IGNORE_PLATFORM_REQS=true + - php: 7.4 + env: CS_CHECK=true + - php: 7.4 + env: TYPE_CHECK=true + + allow_failures: + - php: 7.4 + env: TYPE_CHECK=true + + - php: 7.4 + env: CS_CHECK=true + + fast_finish: true install: + - php --version - composer self-update - composer --version - - composer install + - if [[ $IGNORE_PLATFORM_REQS = 'true' ]]; then composer install --ignore-platform-reqs; else composer install; fi script: - - composer cs:check - - composer type:check - composer test:unit + - if [[ $CS_CHECK = 'true' ]]; then composer cs:check; fi + - if [[ $TYPE_CHECK = 'true' ]]; then composer type:check; fi after_script: - - composer type:coverage - - composer code:coverage + - if [[ $NIGHTLY != 'true' ]]; then composer code:coverage; fi + - if [[ $TYPE_CHECK = 'true' ]]; then composer type:coverage; fi