fix(ci): add bash tests for lifecycle-hooks to the ci workflow

This commit is contained in:
Simon Aronsson 2019-07-26 18:52:01 +02:00
parent 73f21f7e0f
commit 524bcd8acd
2 changed files with 2 additions and 1 deletions

View file

@ -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:

View file

@ -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"