Skip to content

Commit

Permalink
Add WordPoints dev-lib
Browse files Browse the repository at this point in the history
See #262, #247, #271
  • Loading branch information
JDGrimes committed Feb 7, 2015
1 parent c94689d commit 3731bb6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 81 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -1,3 +1,6 @@
[submodule "dev-lib"]
path = dev-lib
url = https://github.com/xwp/wp-dev-lib.git
[submodule "dev-lib-wordpoints"]
path = dev-lib-wordpoints
url = https://github.com/WordPoints/dev-lib.git
39 changes: 8 additions & 31 deletions .travis.yml
@@ -1,19 +1,17 @@
# Travis CI configuration file.
# Travis CI configuration file for WordPoints.

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

env:
- TRAVISCI_RUN=codesniff
- TRAVISCI_RUN=phpunit WP_VERSION=nightly
- TRAVISCI_RUN=phpunit WP_VERSION=latest
- TRAVISCI_RUN=phpunit WP_VERSION=stable
- TRAVISCI_RUN=phpunit WP_VERSION=4.0
- TRAVISCI_RUN=phpunit WP_VERSION=3.9
- TRAVISCI_RUN=phpunit WP_VERSION=3.8
Expand All @@ -24,11 +22,9 @@ matrix:
include:
# Only run HHVM against the latest for now.
- php: hhvm
env: TRAVISCI_RUN=phpunit WP_VERSION=stable
env: TRAVISCI_RUN=phpunit WP_VERSION=latest
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
# The codesniff pass only needs to be run once.
- php: 5.4
env: TRAVISCI_RUN=codesniff
- php: 5.5
Expand All @@ -39,29 +35,10 @@ matrix:
- php: hhvm
fast_finish: true

before_install:
- export WP_TESTS_DIR=/tmp/wordpress-tests/
- export PLUGIN_DIR=$(pwd)
- export PLUGIN_SLUG=$(basename $(pwd) | sed 's/^wp-//')
- export PHPCS_DIR=/tmp/phpcs
- export PHPCS_GITHUB_SRC=squizlabs/PHP_CodeSniffer
- export PHPCS_GIT_TREE=master
- export PHPCS_IGNORE='vendor/*,dev-lib/*'
- export WPCS_DIR=/tmp/wpcs
- export WPCS_GITHUB_SRC=WordPress-Coding-Standards/WordPress-Coding-Standards
- export WPCS_GIT_TREE=master
- export WPCS_STANDARD=$(if [ -e phpcs.ruleset.xml ]; then echo phpcs.ruleset.xml; else echo WordPress; fi)
- if [ -e .ci-env.sh ]; then source .ci-env.sh; fi

before_script:
- >
if [ $TRAVISCI_RUN == phpunit ]; then
setup-phpunit
fi
- >
if [ $TRAVISCI_RUN == codesniff ]; then
setup-codesniff
fi
- export WORDPOINTS_PROJECT_TYPE=wordpoints
- export DEV_LIB_PATH=dev-lib-wordpoints
- source $DEV_LIB_PATH/travis/before_script.sh

script:
- codesniff-php-syntax
Expand All @@ -80,4 +57,4 @@ script:
- phpunit-ms-network-ajax

after_script:
- if [[ $TRAVIS_PHP_VERSION == hhvm ]]; then php vendor/bin/coveralls; fi
- source $DEV_LIB_PATH/travis/after_script.sh
1 change: 1 addition & 0 deletions dev-lib-wordpoints
Submodule dev-lib-wordpoints added at 6d4b32
50 changes: 0 additions & 50 deletions phpcs.ruleset.xml

This file was deleted.

1 change: 1 addition & 0 deletions phpcs.ruleset.xml

0 comments on commit 3731bb6

Please sign in to comment.