Skip to content

Commit

Permalink
Fix travis (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg-web committed Apr 26, 2016
1 parent ba9634e commit f69530b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ cache:
- $HOME/.composer/cache

before_install:
- phpenv config-rm xdebug.ini
- if [[ "$TRAVIS_PHP_VERSION" != "7.0" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi
- composer selfupdate

install: composer update --prefer-dist --no-interaction

script: ./bin/travis_phpunit
after_script:
- if [ "$TRAVIS_PHP_VERSION" == "5.6" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
8 changes: 4 additions & 4 deletions bin/travis_phpunit
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ EXCLUDE_GROUPS="--exclude-group cs"

if [ "$TRAVIS_PHP_VERSION" == "7.0" ]
then
$PHPUNIT -d xdebug.max_nesting_level=1000 --coverage-clover=coverage.clover $EXCLUDE_GROUPS
elif [ "$TRAVIS_PHP_VERSION" == "5.6" ]
then
$PHPUNIT
$PHPUNIT -d xdebug.max_nesting_level=200 --coverage-clover=coverage.clover $EXCLUDE_GROUPS
#elif [ "$TRAVIS_PHP_VERSION" == "5.6" ]
#then
# $PHPUNIT
else
$PHPUNIT $EXCLUDE_GROUPS
fi
Expand Down

0 comments on commit f69530b

Please sign in to comment.