Skip to content

Commit 896e8a8

Browse files
committed
Merge pull request #92 from stof/faster_travis
Improve the Travis configuration
2 parents 81aa8be + 84e2a89 commit 896e8a8

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.travis.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: php
22

3+
sudo: false
4+
35
php: [5.3, 5.4, 5.5, 5.6, hhvm]
46

57
matrix:
@@ -9,12 +11,17 @@ matrix:
911
- php: 5.5
1012
env: SYMFONY_VERSION='2.5.*@dev'
1113

12-
before_script:
14+
cache:
15+
directories:
16+
- $HOME/.composer/cache
17+
18+
before_install:
1319
- sh -c 'if [ "$SYMFONY_VERSION" != "" ]; then composer require -n --no-update symfony/symfony=$SYMFONY_VERSION; fi;'
14-
- composer install -n --prefer-source
20+
21+
install:
22+
- composer install -n
1523

1624
script: phpunit -v --coverage-clover=coverage.clover
1725

1826
after_script:
19-
- wget https://scrutinizer-ci.com/ocular.phar
20-
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
27+
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover

0 commit comments

Comments
 (0)