From 524bcd8acd2dbd9a9df63b595b5ea338c23056a4 Mon Sep 17 00:00:00 2001 From: Simon Aronsson Date: Fri, 26 Jul 2019 18:52:01 +0200 Subject: [PATCH] fix(ci): add bash tests for lifecycle-hooks to the ci workflow --- .circleci/config.yml | 1 + scripts/lifecycle-tests.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6b35d35..4dff50b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -90,6 +90,7 @@ jobs: - run: go get -u github.com/haya14busa/goverage - run: goverage -v -coverprofile=coverage.out ./... - run: godacov -t $CODACY_TOKEN -r ./coverage.out -c $CIRCLE_SHA1 + - run: ./scripts/lifecycle-tests.sh build: executor: go steps: diff --git a/scripts/lifecycle-tests.sh b/scripts/lifecycle-tests.sh index 6be47f1..dd41823 100755 --- a/scripts/lifecycle-tests.sh +++ b/scripts/lifecycle-tests.sh @@ -22,7 +22,7 @@ function cleanup { } trap cleanup EXIT -DEFAULT_WATCHTOWER="${GOPATH}/src/github.com/containrrr/watchtower/watchtower" +DEFAULT_WATCHTOWER="$(dirname "${BASH_SOURCE[0]}")/../watchtower" WATCHTOWER=$1 WATCHTOWER=${WATCHTOWER:-$DEFAULT_WATCHTOWER} echo "watchtower path is $WATCHTOWER"