Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Jul 12, 2015
1 parent f65cc62 commit 5f5064f
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .travis.yml
@@ -1,23 +1,35 @@
language: php
sudo: false
cache: composer

## PHP versions we test against
php:
- 5.6
- 7
- hhvm
- hhvm-nightly

## Build matrix for lowest and highest possible targets
matrix:
allow_failures:
- php: hhvm-nightly

branches:
only:
- master
include:
- php: 5.6
env: dependencies=lowest
- php: 7
env: dependencies=lowest
- php: hhvm
env: dependencies=lowest
- php: 5.6
env: dependencies=highest
- php: 7
env: dependencies=highest
- php: hhvm
env: dependencies=highest

## Update composer and run the appropriate composer command
before_script:
- composer self-update
- composer self-update -q
- if [ -z "$dependencies" ]; then composer install; fi;
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update -n; fi;

## Run the actual test
script: make travis

notifications:
Expand Down

0 comments on commit 5f5064f

Please sign in to comment.