Skip to content

Commit 66c6f9c

Browse files
committed
Travis optimizations
- disable sudo to enable linux container - no longer run "composer self-update" - run composer install within install section - run composer install with "--prefer-source" as of travis can't download packages from github
1 parent 97e3a5a commit 66c6f9c

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.travis.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
sudo: false
12
language: php
23

34
php:
@@ -9,18 +10,12 @@ php:
910
- hhvm
1011
- hhvm-nightly
1112

12-
matrix:
13-
allow_failures:
14-
- php: hhvm-nightly
13+
install:
14+
- composer install --dev -n --prefer-source
1515

1616
before_script:
1717
- CODE_COVERAGE=`echo $TRAVIS_PHP_VERSION | grep -v "hhvm" | wc -l`
1818

19-
# Install dependencies and make sure we work with an up-to-date composer
20-
# On PHP 5.3.3 we require "--prefer-source" option because of missing openssl issue
21-
- composer self-update
22-
- if [ "$TRAVIS_PHP_VERSION" = "5.3.3" ]; then composer install --dev -n --prefer-source; else composer install --dev -n; fi
23-
2419
script:
2520
- if [ "$CODE_COVERAGE" = "1" ]; then php vendor/bin/phpunit --verbose --coverage-clover=coverage.clover; else php vendor/bin/phpunit --verbose; fi
2621

@@ -29,7 +24,9 @@ after_script:
2924
- if [ "$CODE_COVERAGE" = "1" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
3025

3126
matrix:
32-
fast_finish: true
27+
fast_finish: true
28+
allow_failures:
29+
- php: hhvm-nightly
3330

3431
notifications:
35-
email: false
32+
email: false

0 commit comments

Comments
 (0)