Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from ycfreeman/test
Browse files Browse the repository at this point in the history
fix test / deployment scripts
  • Loading branch information
ycfreeman committed May 25, 2016
2 parents 82fc884 + 63139b4 commit 6b8b385
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 118 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ crashlytics-build.properties
/vendor/

node_modules/
**/node_modules/
**/node_modules/

install-wp-tests.sh
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,28 @@ env:
- WP_VERSION=3.7 WP_MULTISITE=1

before_script:
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION

- curl -O https://raw.githubusercontent.com/wp-cli/wp-cli/master/templates/install-wp-tests.sh
- bash install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
script:
- phpunit
- curl -Lo travis_after_all.py https://raw.github.com/Javierchik/travis_after_all/master/travis_after_all.py

after_success:
- python travis_after_all.py https://api.travis-ci.com
- python travis_after_all.py
- export $(cat .to_export_back)
- |
if [ "$BUILD_LEADER" = "YES" ]; then
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
if ([ -n "TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]); then
if ([ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]); then
echo tag=$TRAVIS_TAG;
bash deploy-wordpress-plugin.sh $PLUGINSLUG $MAINFILE $TRAVIS_TAG $SVNUSER $SVNPASS;
fi
else
echo "Some jobs failed"
fi
fi
after_failure:
- python travis_after_all.py https://api.travis-ci.com
- python travis_after_all.py
- export $(cat .to_export_back)
- |
if [ "$BUILD_LEADER" = "YES" ]; then
Expand Down
112 changes: 0 additions & 112 deletions bin/install-wp-tests.sh

This file was deleted.

0 comments on commit 6b8b385

Please sign in to comment.