Skip to content

Commit dde6a09

Browse files
committed
Add PHP 7.1 and 7.2 to test matrix
1 parent 0f8cfe8 commit dde6a09

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ php:
55
- 5.4
66
- 5.5
77
- 5.6
8-
- 7
8+
- 7.0
9+
- 7.1
10+
- 7.2
911

1012
env:
1113
- VARNISH_VERSION=4.0
@@ -28,7 +30,7 @@ branches:
2830
before_script:
2931
# Install deps
3032
- 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"
33+
- bash -c "if [[ '$TRAVIS_PHP_VERSION' == '7.'* ]] ; then wget https://phar.phpunit.de/phpunit-5.7.phar; fi"
3234
# Install Varnish
3335
- curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
3436
- echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-${VARNISH_VERSION}" | sudo tee -a /etc/apt/sources.list
@@ -42,7 +44,7 @@ before_script:
4244
- sh -c "if [ '$TRAVIS_PHP_VERSION' = 'hhvm' ]; then ./tests/ci/install-apache-hhvm.sh; fi"
4345

4446
script:
45-
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7' ]; then php phpunit-5.7.phar --coverage-clover=coverage.clover; fi"
47+
- bash -c "if [[ '$TRAVIS_PHP_VERSION' == '7.'* ]] ; then php phpunit-5.7.phar --coverage-clover=coverage.clover; fi"
4648
- sh -c "if [ '$TRAVIS_PHP_VERSION' \< '7' ]; then phpunit --coverage-clover=coverage.clover; fi"
4749
- make -C doc SPHINXOPTS='-nW' html
4850
- make -C doc spelling

0 commit comments

Comments
 (0)