Prefer dist + cache for Travis builds

To speed up builds
This commit is contained in:
Barry vd. Heuvel 2016-06-08 22:23:32 +02:00
parent 37f9078c76
commit 0bc103678d
1 changed files with 6 additions and 1 deletions

View File

@ -10,6 +10,11 @@ php:
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false
## Cache composer
cache:
directories:
- $HOME/.composer/cache
matrix:
include:
- php: 5.5
@ -17,7 +22,7 @@ matrix:
before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
script:
- vendor/bin/phpcs --standard=psr2 src/