Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up TravisCI build and test with lowest and latests dependencies #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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