github.com/blystad/deis@v0.11.0/logger/Makefile (about) 1 include ../includes.mk 2 3 build: 4 $(call rsync_all) 5 $(call ssh_all,'cd share/logger && sudo docker build -t deis/logger .') 6 7 install: check-fleet 8 $(FLEETCTL) load systemd/* 9 10 uninstall: check-fleet stop 11 $(FLEETCTL) unload systemd/* 12 $(FLEETCTL) destroy systemd/* 13 14 start: check-fleet 15 $(FLEETCTL) start -no-block systemd/* 16 17 stop: check-fleet 18 $(FLEETCTL) stop -block-attempts=600 systemd/* 19 20 restart: stop start 21 22 run: install start 23 24 clean: uninstall 25 $(call ssh_all,'sudo docker rm -f deis-logger') 26 27 full-clean: clean 28 $(call ssh_all,'sudo docker rmi deis/logger') 29 30 test: test-unit test-functional 31 32 setup-root-gotools: 33 sudo GOPATH=/tmp/tmpGOPATH go get -u -v code.google.com/p/go.tools/cmd/cover 34 sudo GOPATH=/tmp/tmpGOPATH go get -u -v code.google.com/p/go.tools/cmd/vet 35 sudo rm -rf /tmp/tmpGOPATH 36 37 setup-gotools: 38 go get -v github.com/golang/lint/golint 39 40 test-style: 41 go vet -x ./... 42 -golint . 43 44 test-unit: test-style 45 go test -v -cover ./syslog 46 47 test-functional: 48 GOPATH=$(CURDIR)/../tests/_vendor:$(GOPATH) go test -v -timeout 20m ./tests/... 49 50 coverage: 51 go test -coverprofile coverage.out ./syslog 52 go tool cover -html=coverage.out