Skip to content
Snippets Groups Projects
Commit 3fadb26d authored by Will McCutchen's avatar Will McCutchen
Browse files

Fail CI builds if static assets change

parent f72cf672
No related branches found
No related tags found
No related merge requests found
...@@ -62,11 +62,13 @@ $(GENERATED_ASSETS_PATH): $(TOOL_GOBINDATA) static/* ...@@ -62,11 +62,13 @@ $(GENERATED_ASSETS_PATH): $(TOOL_GOBINDATA) static/*
test: test:
go test $(TEST_ARGS) ./... go test $(TEST_ARGS) ./...
# Test command to run for continuous integration, which includes code coverage # Test command to run for continuous integration, which includes code coverage
# based on codecov.io's documentation: # based on codecov.io's documentation:
# https://github.com/codecov/example-go/blob/b85638743b972bd0bd2af63421fe513c6f968930/README.md # https://github.com/codecov/example-go/blob/b85638743b972bd0bd2af63421fe513c6f968930/README.md
testci: testci: build
go test $(TEST_ARGS) $(COVERAGE_ARGS) ./... go test $(TEST_ARGS) $(COVERAGE_ARGS) ./...
git diff --exit-code
testcover: testci testcover: testci
go tool cover -html=$(COVERAGE_PATH) go tool cover -html=$(COVERAGE_PATH)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment