Skip to content

Commit

Permalink
Updated Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Apr 15, 2017
1 parent 5f8a481 commit 574e375
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ matrix:
include:
- php: '7.0'
env: WP_VERSION=latest WP_MULTISITE=0
- php: '7.0'
- php: '7.1'
env: WP_VERSION=latest WP_MULTISITE=1
- php: '5.6'
env: WP_VERSION=latest WP_MULTISITE=0
Expand All @@ -28,7 +28,25 @@ matrix:
env: WP_VERSION=4.0

before_script:
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- |
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then
composer global require "phpunit/phpunit=5.7.*"
else
composer global require "phpunit/phpunit=4.8.*"
fi
script:
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' && ( $TRAVIS_PHP_VERSION != '5.5'|| $WP_VERSION != 'latest'
|| $WP_MULTISITE != '0' ) ]]; then phpenv config-rm xdebug.ini; fi
- if [[ $TRAVIS_PHP_VERSION = '5.5' && $WP_VERSION = 'latest' && $WP_MULTISITE = '0'
]]; then phpunit --coverage-clover=coverage.clover; else phpunit; fi

script: phpunit
after_script:
- if [[ $TRAVIS_PHP_VERSION = '5.5' && $WP_VERSION = 'latest' && $WP_MULTISITE = '0'
]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [[ $TRAVIS_PHP_VERSION = '5.5' && $WP_VERSION = 'latest' && $WP_MULTISITE = '0'
]]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover;
fi

0 comments on commit 574e375

Please sign in to comment.