From c5b58a211dcabaf26e17de644f4b67648c3534be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Thu, 3 Sep 2015 15:30:58 +0200 Subject: [PATCH 1/3] load functions before iterating over getAllStepVars getAllStepVars is defined in functions.sh --- run.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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\"" From a42bec779cf46c0fd19ae82f71cc24484139467d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Thu, 3 Sep 2015 15:31:24 +0200 Subject: [PATCH 2/3] bump version --- wercker-step.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From a6d7a7b4aaf1292c45db5b5c7a65ce73f107a39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Thu, 3 Sep 2015 16:25:42 +0200 Subject: [PATCH 3/3] verbose output for tests --- tests/integration.sh | 1 + tests/unit.sh | 1 + 2 files changed, 2 insertions(+) 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