Skip to content
Open
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
27 changes: 24 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,41 @@
language: php

sudo: false

git:
depth: 2

cache:
directories:
- $HOME/.composer/cache

php:
- 5.5
- 5.6
- 7
- 7.1
- nightly
- hhvm

matrix:
allow_failures:
- php: hhvm
- php: nightly
fast_finish: true

env:
matrix:
- PREFER_LOWEST=""
- PREFER_LOWEST="--prefer-lowest"

before_install:
- composer config --global github-oauth.github.com $GITHUB_OAUTH_TOKEN

before_script:
- composer install --no-interaction --prefer-source
install:
- composer update --no-interaction --prefer-stable --prefer-dist --no-suggest --no-scripts --no-plugins $PREFER_LOWEST

script:
- ./vendor/bin/phpunit --coverage-clover ./build/clover.xml
- ./vendor/bin/phpunit --colors --coverage-clover ./build/clover.xml
- if [ $TRAVIS_PHP_VERSION != 'hhvm' ] && [ $TRAVIS_PHP_VERSION != '7' ]; then php build/coverage-checker.php build/clover.xml 70; fi
- ./vendor/bin/phpcs

Expand Down