diff --git a/Makefile b/Makefile index 4387e3e3..3dca5c45 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PUBLISH=publish_weave publish_weaveexec .DEFAULT: all -.PHONY: all update tests publish $(PUBLISH) clean prerequisites build travis run-smoketests +.PHONY: all update tests publish $(PUBLISH) clean clean-bin prerequisites build travis run-smoketests # If you can use docker without being root, you can do "make SUDO=" SUDO=sudo @@ -120,10 +120,12 @@ endif publish: $(PUBLISH) -clean: +clean-bin: -$(SUDO) docker rmi $(IMAGES) go clean -r ./... rm -f $(EXES) $(IMAGES_UPTODATE) $(WEAVE_EXPORT) + +clean: clean-bin rm -rf test/tls/*.pem test/coverage.* test/coverage build: diff --git a/circle.yml b/circle.yml index 63bcc109..83f9a61c 100644 --- a/circle.yml +++ b/circle.yml @@ -48,6 +48,10 @@ test: - cd $SRCDIR/test; eval $(./gce.sh hosts); export COVERAGE=true; ./run_all.sh: parallel: true timeout: 300 + - cd $SRCDIR; make clean-bin: + parallel: true + - docker run -v /var/run/docker.sock:/run/docker.sock -v /home/ubuntu:/home/go weaveworks/weave-build: + parallel: true post: - cd $SRCDIR/test; ./gce.sh destroy: parallel: true @@ -60,3 +64,11 @@ teardown: parallel: true - test "$CIRCLE_NODE_INDEX" != "0" || (cd $SRCDIR/test; cp coverage.* $CIRCLE_ARTIFACTS): parallel: true + +deployment: + hub: + branch: master + owner: weaveworks + commands: + - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS + - make publish