Skip to content

Commit

Permalink
Make tests be the last command and check for running etcd
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Aug 25, 2018
1 parent a9b3230 commit 88fbb05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
docker build -t dkron .
docker run dkron scripts/validate-gofmt
docker run dkron go vet
[[ $(docker ps -f "name=etcd" --format '{{.Names}}') == etcd ]] ||
docker run --rm --name etcd -d -p "2379" quay.io/coreos/etcd etcd -name=dkron1 -advertise-client-urls http://etcd:2379 -listen-client-urls http://0.0.0.0:2379
docker run --link etcd -e DKRON_BACKEND_MACHINE=etcd:2379 dkron go test -v ./... $1
docker kill etcd
docker run --rm --link etcd -e DKRON_BACKEND_MACHINE=etcd:2379 dkron go test -v -timeout 30s ./... $1

0 comments on commit 88fbb05

Please sign in to comment.