Cache composer packages and secure PHP versions

This commit is contained in:
Théo FIDRY
2016-03-12 13:41:19 +00:00
parent 1de56025c4
commit a84b078d1e
+9 -5
View File
@@ -1,16 +1,20 @@
language: php
php:
- 5.5.9
- 5.5
- 5.6
- 7.0
- '5.5.9'
- '5.5'
- '5.6'
- '7.0'
- hhvm
sudo: false
cache:
directories:
- "$HOME/.composer/cache"
before_script:
- composer install --no-interaction --prefer-source
- composer install --no-interaction --prefer-dist
- if [ $TRAVIS_PHP_VERSION = "5.6" ]; then PHPUNIT_FLAGS="--coverage-clover build/logs/clover.xml"; fi
script: