Skip to content

Commit efd6ed8

Browse files
authored
Merge pull request #369 from FriendsOfSymfony/fix-1.4-hhvm
Fix 1.4 build
2 parents a307efe + f823775 commit efd6ed8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ php:
55
- 5.4
66
- 5.5
77
- 5.6
8-
- hhvm
98
- 7
109

1110
env:
1211
- VARNISH_VERSION=4.0
1312

1413
matrix:
1514
include:
15+
- php: hhvm
16+
dist: trusty
1617
- php: 5.5
1718
env: VARNISH_VERSION=3.0
1819
- php: 5.3
@@ -27,6 +28,7 @@ branches:
2728
before_script:
2829
# Install deps
2930
- composer update $COMPOSER_FLAGS --dev --prefer-source --no-interaction
31+
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7' ]; then wget https://phar.phpunit.de/phpunit-5.7.phar; fi"
3032
# Install Varnish
3133
- curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
3234
- echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-${VARNISH_VERSION}" | sudo tee -a /etc/apt/sources.list
@@ -40,7 +42,8 @@ before_script:
4042
- sh -c "if [ '$TRAVIS_PHP_VERSION' = 'hhvm' ]; then ./tests/ci/install-apache-hhvm.sh; fi"
4143

4244
script:
43-
- phpunit --coverage-clover=coverage.clover
45+
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7' ]; then php phpunit-5.7.phar --coverage-clover=coverage.clover; fi"
46+
- sh -c "if [ '$TRAVIS_PHP_VERSION' \< '7' ]; then phpunit --coverage-clover=coverage.clover; fi"
4447
- make -C doc SPHINXOPTS='-nW' html
4548
- make -C doc spelling
4649

0 commit comments

Comments
 (0)