-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stein Fletcher
committed
Nov 16, 2019
1 parent
5e28553
commit 0bfabaa
Showing
3 changed files
with
3 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ install: | |
- hugo version | ||
|
||
script: | ||
- make test-all | ||
- make test | ||
|
||
before_deploy: cd docs && hugo && cd .. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
.PHONY: test test-examples docs fmt vet | ||
|
||
test: | ||
bash -c 'diff -u <(echo -n) <(gofmt -s -d ./)' | ||
bash -c 'diff -u <(echo -n) <(go vet ./...)' | ||
go test ./... -v -covermode=atomic -coverprofile=coverage.out | ||
|
||
test-examples: | ||
cd examples && go test -v ./... && \ | ||
cd sequence-diagrams-with-sqlite-database && make test && cd .. | ||
|
||
fmt: | ||
bash -c 'diff -u <(echo -n) <(gofmt -s -d ./)' | ||
|
||
vet: | ||
bash -c 'diff -u <(echo -n) <(go vet ./...)' | ||
|
||
test-all: fmt vet test | ||
|
||
docs: | ||
cd docs && hugo server -w && cd - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters