language: php
-php:
- - 5.5
- - 5.6
- - 7.0
+
+branches:
+ # Only test the master branch and SemVer tags.
+ only:
+ - master
+ - /^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+.*$/
+
+matrix:
+ fast_finish: true
+ include:
+ - php: 7.2
+ env: 'DEPENCENCIES=highest'
+ - php: 7.2
+ - php: 7.1
+ - php: 7.0.11
+ - php: 5.6
+ env: 'SCENARIO=phpunit4'
+ - php: 5.5
+ env: 'SCENARIO=phpunit4'
+ - php: 5.5
+ env: 'SCENARIO=phpunit4 DEPENDENCIES=lowest'
sudo: false
- composer --version
install:
- - composer --verbose install
+ - 'composer scenario "${SCENARIO}" "${DEPENDENCIES}"'
before_script:
- git config --global user.email "travisci@example.com"
- git config --global user.name "Travis CI Test"
script:
- - ./vendor/bin/phpunit
+ - composer test