diff --git a/run.sh b/run.sh index fd5d543..572dc3a 100755 --- a/run.sh +++ b/run.sh @@ -2,6 +2,11 @@ set -e set +o pipefail +# LOAD OUR FUNCTIONS +DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) +. ${DIR}/functions.sh + +# Start work for variable in $(getAllStepVars) do if [ "${!variable}" == "false" ]; then @@ -15,10 +20,6 @@ if [ -n "$WERCKER_GIT_PUSH_GH_TOKEN" ]; then fail "Your gh_token may be compromised. Please check https://github.com/leipert/step-git-push for more info" fi -# LOAD OUR FUNCTIONS -DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) -. ${DIR}/functions.sh - repo=$(getRepoPath) info "using github repo \"$repo\"" diff --git a/tests/integration.sh b/tests/integration.sh index 6e3245c..435731b 100644 --- a/tests/integration.sh +++ b/tests/integration.sh @@ -1,5 +1,6 @@ #!/bin/bash set +e +set -x function info { echo INFO: $@ diff --git a/tests/unit.sh b/tests/unit.sh index 0ca5007..3e4e848 100644 --- a/tests/unit.sh +++ b/tests/unit.sh @@ -1,5 +1,6 @@ #!/bin/bash set +e +set -x failed=false throwError=false diff --git a/wercker-step.yml b/wercker-step.yml index 6a45062..98d87ad 100644 --- a/wercker-step.yml +++ b/wercker-step.yml @@ -1,5 +1,5 @@ name: git-push -version: 0.7.7 +version: 0.7.8 description: Deploy to a git branch in a given Repo keywords: - github