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"