-
Notifications
You must be signed in to change notification settings - Fork 3
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 #18 from dlh01/0.4.0
Version 0.4
- Loading branch information
Showing
21 changed files
with
1,315 additions
and
92 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,29 +1,67 @@ | ||
language: php | ||
|
||
notifications: | ||
email: | ||
on_success: never | ||
on_failure: change | ||
sudo: false | ||
|
||
branches: | ||
only: | ||
- master | ||
language: php | ||
|
||
php: | ||
- 5.3 | ||
- 5.6 | ||
git: | ||
depth: 1 | ||
|
||
env: | ||
- WP_VERSION=latest WP_MULTISITE=0 | ||
- WP_VERSION=3.7 WP_MULTISITE=0 | ||
- WP_VERSION=4.7-alpha-38178-src WP_MULTISITE=0 | ||
notifications: | ||
email: false | ||
|
||
matrix: | ||
# - Lint PHP once per PHP version. | ||
# | ||
# - Run `phpunit` for each version of PHP and WordPress in single- and multisite. | ||
# | ||
# - Run `qunit:recent` once. The `recent` task handles running tests against | ||
# different versions of WordPress. If we switch to WP_VERSION=x.y.z we could | ||
# instead run `qunit:specific --wp=$WP_VERSION` so that control over which | ||
# versions are tested stays in this config. | ||
include: | ||
- php: 5.3 | ||
env: WP_VERSION=latest WP_MULTISITE=1 | ||
env: WP_VERSION=latest PHP_LINT=1 | ||
|
||
- php: 5.6 | ||
env: WP_VERSION=latest PHP_LINT=1 | ||
|
||
- php: 7.0 | ||
env: WP_VERSION=trunk QUNIT_RECENT=1 | ||
- php: 7.0 | ||
env: WP_VERSION=latest PHP_LINT=1 | ||
|
||
- php: 7.1 | ||
env: WP_VERSION=latest PHP_LINT=1 | ||
|
||
before_script: | ||
- export PATH="$HOME/.composer/vendor/bin:$PATH" | ||
- export WP_CORE_DIR=/tmp/wordpress | ||
|
||
- | | ||
if [[ ${TRAVIS_PHP_VERSION:0:2} == "7." ]]; then | ||
composer global require "phpunit/phpunit=5.7.*" | ||
else | ||
composer global require "phpunit/phpunit=4.8.*" | ||
fi | ||
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION | ||
|
||
script: phpunit | ||
- git clone --depth=1 https://github.com/alleyinteractive/wordpress-fieldmanager $WP_CORE_DIR/wp-content/plugins/wordpress-fieldmanager | ||
|
||
- | | ||
if [[ "$QUNIT_RECENT" == "1" ]]; then | ||
npm install | ||
fi | ||
script: | ||
- | | ||
if [[ "$PHP_LINT" == "1" ]]; then | ||
find . -type "f" -iname "*.php" | xargs -L "1" php -l | ||
fi | ||
- | | ||
if [[ "$QUNIT_RECENT" == "1" ]]; then | ||
grunt qunit:recent | ||
fi | ||
- export WP_MULTISITE=0 && phpunit | ||
- export WP_MULTISITE=1 && phpunit |
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
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
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
{ | ||
"name": "fieldmanager-beta-customize", | ||
"version": "0.1.0", | ||
"version": "0.4.0", | ||
"main": "Gruntfile.js", | ||
"contributors": [ | ||
"David Herrera", | ||
"James Burke", | ||
"Alley Interactive" | ||
], | ||
"devDependencies": { | ||
"grunt": "~0.4.5", | ||
"grunt": "~1.0.0", | ||
"grunt-contrib-connect": "~1.0.0", | ||
"grunt-contrib-qunit": "~1.3.0", | ||
"grunt-wp-i18n": "~0.5.0", | ||
"grunt-wp-readme-to-markdown": "~2.0.0" | ||
"grunt-wp-readme-to-markdown": "~2.0.0", | ||
"qunitjs": "^2.1.1" | ||
} | ||
} |
Oops, something went wrong.