Multiple optimizations to build targets

* Clean up e2e test on interruption
* Leverage GOCACHE for faster builds
* Forward container STDIN in make targets
This commit is contained in:
Antoine Cotten 2018-07-20 20:08:32 +02:00
parent e2111013ef
commit 0c7b948317
No known key found for this signature in database
GPG key ID: 94637E68D4A79DD0
5 changed files with 16 additions and 4 deletions

View file

@ -168,7 +168,7 @@ static-check:
test:
@$(DEF_VARS) \
NODE_IP=$(NODE_IP) \
DOCKER_OPTS="--net=host" \
DOCKER_OPTS="-i --net=host" \
build/go-in-docker.sh build/test.sh
.PHONY: lua-test
@ -182,14 +182,14 @@ e2e-test:
@$(DEF_VARS) \
FOCUS=$(FOCUS) \
E2E_NODES=$(E2E_NODES) \
DOCKER_OPTS="--net=host" \
DOCKER_OPTS="-i --net=host" \
NODE_IP=$(NODE_IP) \
build/go-in-docker.sh build/e2e-tests.sh
.PHONY: cover
cover:
@$(DEF_VARS) \
DOCKER_OPTS="--net=host" \
DOCKER_OPTS="-i --net=host" \
build/go-in-docker.sh build/cover.sh
echo "Uploading coverage results..."