-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from bu-ist/develop
Fix Code Climate Build Errors/Update Travis Config
- Loading branch information
Showing
2 changed files
with
29 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,26 +3,17 @@ language: php | |
sudo: false | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
|
||
env: | ||
- WP_VERSION=4.1.13 WP_MULTISITE=0 | ||
- WP_VERSION=4.1.13 WP_MULTISITE=1 | ||
- WP_VERSION=latest WP_MULTISITE=0 | ||
- WP_VERSION=latest WP_MULTISITE=1 | ||
- WP_VERSION=nightly WP_MULTISITE=0 | ||
- WP_VERSION=nightly WP_MULTISITE=1 | ||
|
||
matrix: | ||
exclude: | ||
- php: 7.0 | ||
env: WP_VERSION=4.1.13 WP_MULTISITE=1 | ||
- php: 7.0 | ||
env: WP_VERSION=4.1.13 WP_MULTISITE=0 | ||
- WP_VERSION=nightly | ||
- WP_VERSION=latest | ||
- WP_VERSION=4.7 | ||
- WP_VERSION=4.6 | ||
|
||
cache: | ||
directories: | ||
|
@@ -35,11 +26,24 @@ install: | |
- composer install --prefer-dist | ||
|
||
before_script: | ||
- 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 | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "Travis CI" | ||
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION | ||
|
||
script: phpunit | ||
script: | ||
- | | ||
if [[ ! -z "$WP_VERSION" ]] ; then | ||
phpunit | ||
WP_MULTISITE=1 phpunit | ||
fi | ||
after_script: | ||
- ./bin/codeclimate.sh | ||
|