language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
# run build against nightly but allow them to fail
matrix:
fast_finish: true
# allow_failures:
# only one build will send the coverage, this'll speed up other one
# include:
# faster builds on new travis setup not using sudo
sudo: false
# cache vendor dirs
cache:
directories:
- vendor
- $HOME/.composer/cache
before_install:
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;
- composer self-update
install:
- composer install --no-interaction --prefer-dist -o
script:
- vendor/bin/phpunit
after_script:
- if [[ "$PHPUNIT_FLAGS" != "" ]]; then php vendor/bin/coveralls -v; fi;
|