-
Notifications
You must be signed in to change notification settings - Fork 1
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 #19 from WordPoints/develop
1.0.2
- Loading branch information
Showing
27 changed files
with
288 additions
and
227 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
dev-lib/travis/.coveralls.yml |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
dev-lib/git/.gitignore |
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,3 @@ | ||
[submodule "dev-lib"] | ||
path = dev-lib | ||
url = https://github.com/WordPoints/dev-lib.git |
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 @@ | ||
dev-lib/jshint/.jshintignore |
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 @@ | ||
dev-lib/jshint/.jshintrc |
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,73 @@ | ||
# Travis CI configuration file for a WordPoints module. | ||
|
||
language: php | ||
|
||
# 5.3 runs first so that we can fail fast on the codesniff pass (see below). | ||
php: | ||
- 5.3 | ||
- 5.2 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
|
||
env: | ||
- TRAVISCI_RUN=codesniff | ||
- TRAVISCI_RUN=phpunit WP_VERSION=master WORDPOINTS_VERSION=master WC_VERSION=2.6.4 | ||
- TRAVISCI_RUN=phpunit WP_VERSION=4.5 WORDPOINTS_VERSION=master WC_VERSION=2.6.4 | ||
- TRAVISCI_RUN=phpunit WP_VERSION=4.4 WORDPOINTS_VERSION=master WC_VERSION=2.6.4 | ||
|
||
sudo: false | ||
|
||
matrix: | ||
include: | ||
# Only run HHVM against trunk for now. | ||
- php: hhvm | ||
env: TRAVISCI_RUN=phpunit WP_VERSION=master WC_VERSION=2.6.4 | ||
# Only run nightly against trunk. | ||
- php: nightly | ||
env: TRAVISCI_RUN=phpunit WP_VERSION=master WC_VERSION=2.6.4 | ||
exclude: | ||
# The codesniff pass only needs to be run once, I chose PHP 5.3, since WPCS requires it. | ||
- php: 5.2 | ||
env: TRAVISCI_RUN=codesniff | ||
- php: 5.4 | ||
env: TRAVISCI_RUN=codesniff | ||
- php: 5.5 | ||
env: TRAVISCI_RUN=codesniff | ||
- php: 5.6 | ||
env: TRAVISCI_RUN=codesniff | ||
- php: 7.0 | ||
env: TRAVISCI_RUN=codesniff | ||
allow_failures: | ||
- php: hhvm | ||
- php: nightly | ||
fast_finish: true | ||
|
||
before_script: | ||
- export WORDPOINTS_PROJECT_TYPE=module | ||
- export DEV_LIB_PATH=dev-lib | ||
- if [ -e .wordpoints-dev-lib-config.sh ]; then source .wordpoints-dev-lib-config.sh; fi | ||
- source $DEV_LIB_PATH/travis/before_script.sh | ||
|
||
script: | ||
- codesniff-php-syntax | ||
- codesniff-php-autoloaders | ||
- codesniff-phpcs | ||
- codesniff-jshint | ||
- codesniff-l10n | ||
- codesniff-xmllint | ||
- codesniff-bash | ||
- codesniff-symlinks | ||
- phpunit-basic | ||
- phpunit-ms | ||
- phpunit-ms-network | ||
- phpunit-uninstall | ||
- phpunit-ms-uninstall | ||
- phpunit-ms-network-uninstall | ||
- phpunit-ajax | ||
- phpunit-ms-ajax | ||
- phpunit-ms-network-ajax | ||
|
||
after_script: | ||
- source $DEV_LIB_PATH/travis/after_script.sh |
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,25 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
shopt -s expand_aliases | ||
|
||
# Install WooCommerce when running tests. | ||
install-woocommerce() { | ||
|
||
mkdir /tmp/woocommerce | ||
|
||
curl -L "https://github.com/woothemes/woocommerce/archive/${WC_VERSION}.tar.gz" \ | ||
| tar xvz --strip-components=1 -C /tmp/woocommerce | ||
|
||
mv /tmp/woocommerce /tmp/wordpress/src/wp-content/plugins/woocommerce | ||
} | ||
|
||
# Sets up custom configuration. | ||
function wordpoints-dev-lib-config() { | ||
|
||
alias setup-phpunit="\setup-phpunit; install-woocommerce" | ||
} | ||
|
||
set +e | ||
|
||
# EOF |
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,40 @@ | ||
{ | ||
"files": { | ||
"\/components\/points\/includes\/functions.php": { | ||
"size": 1634, | ||
"hash": "268e6793315b680fbdb33bc00ee9ca31", | ||
"errors": false | ||
}, | ||
"\/components\/points\/includes\/gateways\/points.php": { | ||
"size": 6250, | ||
"hash": "ea3dd18ff0de80df7d129dac4e987b2a", | ||
"errors": false | ||
}, | ||
"\/components\/points\/points.php": { | ||
"size": 494, | ||
"hash": "5d7c235bbb9fc10e4e85fc64f1211651", | ||
"errors": false | ||
}, | ||
"\/includes\/class-un-installer.php": { | ||
"size": 526, | ||
"hash": "3fafcdde71acee86a0be045db47bc446", | ||
"errors": false | ||
}, | ||
"\/includes\/constants.php": { | ||
"size": 449, | ||
"hash": "cd895286efb36fff138393ba52ac61f9", | ||
"errors": false | ||
}, | ||
"\/includes\/functions.php": { | ||
"size": 899, | ||
"hash": "e3862371baeae43c74ecc2ff489613f6", | ||
"errors": false | ||
}, | ||
"\/woocommerce.php": { | ||
"size": 1191, | ||
"hash": "a14114c7cdf4aa604cadb6f93793548d", | ||
"errors": false | ||
} | ||
}, | ||
"config_signature": "59e021655228772535dbe74b7e705298" | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
dev-lib/phpcs/WordPoints/ruleset.xml |
Oops, something went wrong.