Skip to content

Commit f663751

Browse files
author
David Alger
committed
Update .travis.yml to use composer cache when run on private build server.
1 parent 82109a5 commit f663751

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ env:
88
- TEST_SUITE=integration_integrity
99
- TEST_SUITE=static_phpcs
1010
- TEST_SUITE=static_annotation
11+
cache:
12+
directories:
13+
- $HOME/.composer/cache
1114
matrix:
1215
exclude:
1316
- php: 5.6
@@ -45,7 +48,7 @@ before_script:
4548
# Change memory_limit for travis
4649
- echo 'memory_limit = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
4750
- phpenv rehash;
48-
- composer install --no-interaction --dev
51+
- composer install --no-interaction --dev --prefer-dist
4952
script:
5053
# Unit tests
5154
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist; fi"

0 commit comments

Comments
 (0)