This repository has been archived by the owner on Feb 6, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
923 additions
and
176 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,38 @@ | ||
sudo: false | ||
|
||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- hhvm | ||
matrix: | ||
include: | ||
- php: 5.2 | ||
env: WP_VERSION=latest WP_MULTISITE=1 | ||
- php: 5.2 | ||
env: WP_VERSION=4.0 WP_MULTISITE=1 | ||
- php: 5.3 | ||
env: WP_VERSION=4.0 | ||
- php: 5.4 | ||
env: WP_VERSION=4.0 | ||
- php: 5.5 | ||
env: WP_VERSION=4.0 | ||
- php: 5.6 | ||
env: WP_VERSION=4.0 COVERAGE=1 GRUNT=1 | ||
- php: 7.0 | ||
env: WP_VERSION=4.0 | ||
- php: hhvm | ||
env: WP_VERSION=4.0 | ||
fast_finish: true | ||
|
||
cache: | ||
directories: | ||
- node_modules | ||
- vendor | ||
- $HOME/.composer/cache | ||
|
||
before_script: | ||
- composer install | ||
- bash bin/travis-before_script | ||
|
||
script: | ||
- bash bin/travis-script | ||
|
||
after_script: | ||
- php vendor/bin/coveralls | ||
after_success: | ||
- bash bin/travis-after_success |
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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# WordPress Coding Standards | ||
if [[ -d vendor/wp-coding-standards/wpcs ]]; then | ||
vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Coveralls | ||
if [[ '1' == $COVERAGE ]]; then | ||
php vendor/bin/coveralls | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -ev | ||
|
||
phpenv local 5.6 | ||
|
||
composer self-update | ||
|
||
if [[ '1' == $COVERAGE ]]; then | ||
composer install | ||
else | ||
composer install --no-dev | ||
fi | ||
|
||
phpenv local --unset | ||
|
||
phpenv rehash | ||
|
||
wget https://raw.githubusercontent.com/wp-cli/sample-plugin/master/bin/install-wp-tests.sh | ||
|
||
bash install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -ev | ||
|
||
# PHPUnit | ||
phpunit | ||
|
||
# Grunt | ||
if [[ '1' == $GRUNT ]]; then | ||
npm install -g grunt-cli | ||
|
||
npm install --no-optional | ||
|
||
grunt | ||
fi |
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
Oops, something went wrong.