Skip to content

Commit

Permalink
Remove automated go clean -testcache
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Jun 10, 2018
1 parent ab56259 commit f852223
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,22 @@ inertia-tagged:
# Remove Inertia binaries
.PHONY: clean
clean:
go clean -testcache
rm -f ./inertia
find . -type f -name inertia.\* -exec rm {} \;

# Run static analysis
.PHONY: lint
lint:
PATH=$(PATH):./bin bash -c './bin/gometalinter --vendor --deadline=60s ./...'
(cd ./daemon/web; npm run lint)

# Run unit test suite
# Run test suite without Docker ops
.PHONY: test
test:
go test ./... -short -ldflags "-X main.Version=test" --cover

# Run unit test suite verbosely
# Run test suite without Docker ops
.PHONY: test-v
test-v:
go test ./... -short -ldflags "-X main.Version=test" -v --cover
Expand All @@ -65,21 +67,18 @@ test-all:
make lint
make testenv VPS_OS=$(VPS_OS) VPS_VERSION=$(VPS_VERSION)
make testdaemon
go clean -testcache
go test ./... -ldflags "-X main.Version=test" --cover

# Run integration tests verbosely - creates fresh test VPS and test daemon beforehand
.PHONY: test-integration
test-integration:
go clean -testcache
make testenv VPS_OS=$(VPS_OS) VPS_VERSION=$(VPS_VERSION)
make testdaemon
go test ./... -v -run 'Integration' -ldflags "-X main.Version=test" --cover

# Run integration tests verbosely without recreating test VPS
.PHONY: test-integration-fast
test-integration-fast:
go clean -testcache
make testdaemon
go test ./... -v -run 'Integration' -ldflags "-X main.Version=test" --cover

Expand Down

0 comments on commit f852223

Please sign in to comment.