Skip to content

Commit

Permalink
Fixed travis branch requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
gpressutto5 committed Oct 16, 2017
1 parent 2423f14 commit 871fbc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ deploy:
file: woocommerce-gateway-ebanx.zip
skip_cleanup: true
on:
branch: master
repo: ebanx/woocommerce-gateway-ebanx
tags: true
all_branches: true
- provider: script
skip_cleanup: true
script: ./deploy.sh
on:
branch: master
repo: ebanx/woocommerce-gateway-ebanx
tags: true
all_branches: true
6 changes: 3 additions & 3 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ if [[ -z "$WP_ORG_PASSWORD" ]]; then
exit 1
fi

if [[ -z "$TRAVIS_BRANCH" || "$TRAVIS_BRANCH" != "master" ]]; then
echo "Build branch is required and must be 'master'" 1>&2
if [[ -z "$TRAVIS_TAG" ]]; then
echo "Build must be tag" 1>&2
exit 0
fi

Expand All @@ -21,7 +21,7 @@ SLUG="ebanx-payment-gateway-for-woocommerce"
PROJECT_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
PLUGIN_BUILDS_PATH="$PROJECT_ROOT/build"
VERSION=$TRAVIS_TAG
ZIP_FILE="$PROJECT_ROOT/$PLUGIN.zip"
ZIP_FILE="$PROJECT_ROOT/woocommerce-gateway-ebanx/$PLUGIN.zip"

# Ensure the zip file for the current version has been built
if [ ! -f "$ZIP_FILE" ]; then
Expand Down

0 comments on commit 871fbc8

Please sign in to comment.