Skip to content

Commit

Permalink
Switched ocular to use PHP 7.1 execution results
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Apr 20, 2017
1 parent 9e1063e commit f62b53f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ before_script:
- mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost' WITH GRANT OPTION;";
- psql -U postgres -c 'CREATE DATABASE yiitest;';

# enable code coverage on PHP 5.6, only one PHP version needs to generate coverage data
# enable code coverage on PHP 7.1, only one PHP version needs to generate coverage data
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
if [ $TRAVIS_PHP_VERSION = '7.1' ]; then
PHPUNIT_FLAGS="--coverage-clover=coverage.clover"
fi
Expand All @@ -157,7 +157,7 @@ script:

after_script:
- |
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
if [ $TRAVIS_PHP_VERSION = '7.1' ]; then
travis_retry wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi

0 comments on commit f62b53f

Please sign in to comment.