github.com/rvaralda/deis@v1.4.1/tests/Makefile (about) 1 include ../includes.mk 2 3 # the filepath to this repository, relative to $GOPATH/src 4 repo_path = github.com/deis/deis/tests 5 6 GO_FILES = apps_test.go auth_test.go builds_test.go config_test.go integration_test.go \ 7 keys_test.go limits_test.go main.go perms_test.go ps_test.go releases_test.go \ 8 smoke_test.go tags_test.go 9 GO_PACKAGES = dockercli etcdutils mock utils 10 GO_PACKAGES_REPO_PATH = $(addprefix $(repo_path)/,$(GO_PACKAGES)) 11 12 MOCK_STORE_IMAGE = $(IMAGE_PREFIX)mock-store:latest 13 14 test: test-smoke 15 16 test-smoke: test-style 17 godep go test -tags integration -short -timeout 20m -v -run TestSmoke 18 19 test-full: test-style 20 godep go test -tags integration -v -run TestGlobal 21 godep go test -tags integration -v -run TestApps 22 godep go test -tags integration -v -run TestAuth 23 godep go test -tags integration -v -run TestBuilds 24 godep go test -tags integration -v -run TestConfig 25 godep go test -tags integration -v -run TestKeys 26 godep go test -tags integration -v -run TestPerms 27 godep go test -tags integration -v -run TestPs 28 godep go test -tags integration -v -run TestReleases 29 30 setup-root-gotools: 31 sudo GOPATH=/tmp/tmpGOPATH go get -u -v code.google.com/p/go.tools/cmd/cover 32 sudo GOPATH=/tmp/tmpGOPATH go get -u -v code.google.com/p/go.tools/cmd/vet 33 sudo rm -rf /tmp/tmpGOPATH 34 35 setup-gotools: 36 go get -v github.com/golang/lint/golint 37 38 mock-store: 39 docker build -t $(MOCK_STORE_IMAGE) fixtures/mock-store/ 40 41 test-style: 42 # display output, then check 43 $(GOFMT) $(GO_PACKAGES) $(GO_FILES) 44 @$(GOFMT) $(GO_PACKAGES) $(GO_FILES) | read; if [ $$? == 0 ]; then echo "gofmt check failed."; exit 1; fi 45 $(GOVET) $(repo_path) $(GO_PACKAGES_REPO_PATH) 46 $(GOLINT) ./... 47 48 nuke_from_orbit: 49 -docker kill `docker ps -q` 50 -docker rm -v `docker ps -a -q` 51 -docker rmi -f `docker images -q`