Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #60 from elricho/master
Browse files Browse the repository at this point in the history
Fix PHPUnit version for HHVM tests on Travis with Trusty.
  • Loading branch information
elricho authored Sep 21, 2017
2 parents f57f53a + e25b78f commit 024be91
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ before_install:
- if [[ $TRAVIS_PHP_VERSION =~ 5.* ]] ; then printf "\nextension=memcache.so\n" >> ./tests/travis_php.ini; fi;
- if [[ $TRAVIS_PHP_VERSION = 7.* ]] ; then printf "\nextension=apcu.so\n" >> ./tests/travis_php.ini; fi;
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then phpenv config-add ./tests/travis_php.ini; fi;
- if [[ $TRAVIS_PHP_VERSION = 'hhvm' ]]; then printf "\nhhvm.php7.all=1\n" > ./tests/travis_php.ini; fi;
- if [[ $TRAVIS_PHP_VERSION = 'hhvm' ]]; then phpenv config-add ./tests/travis_php.ini; fi;
- if [[ $TRAVIS_PHP_VERSION = 'hhvm' ]]; then travis_retry composer require --dev --no-update phpunit/phpunit 5.7.21; fi
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source
- travis_retry composer require predis/predis:^1.1
Expand All @@ -29,5 +32,6 @@ before_script:
- cat hdconfig.php | sed -e s/your_api_username/$API_USERNAME/ -e s/your_api_secret/$API_SECRET/ -e s/your_api_siteId/$API_SITE_ID/ > hd4CloudConfig.php
- cat hd4CloudConfig.php > hd4UltimateConfig.php
- echo "\$hdconfig['use_local'] = true;" >> hd4UltimateConfig.php

script: phpunit --debug
- if [[ $TRAVIS_PHP_VERSION = 'hhvm' ]]; then export PHPUNIT=vendor/bin/; fi;

script: ${PHPUNIT}phpunit --debug

0 comments on commit 024be91

Please sign in to comment.