You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
403 B
25 lines
403 B
|
6 hours ago
|
all: build
|
||
|
|
|
||
|
|
build:
|
||
|
|
go build -o bin/ .
|
||
|
|
|
||
|
|
test:
|
||
|
|
./bin/tests.test
|
||
|
|
|
||
|
|
test_only:
|
||
|
|
./bin/tests.test -test.run $(TEST)
|
||
|
|
|
||
|
|
docs:
|
||
|
|
pkgsite --open
|
||
|
|
|
||
|
|
coverage:
|
||
|
|
go build -cover -o bin/app
|
||
|
|
mkdir -p .coverage
|
||
|
|
echo "GOCOVERDIR=.coverage ./app"
|
||
|
|
|
||
|
|
cover_report:
|
||
|
|
go tool covdata textfmt -i=.coverage -o coverage.txt
|
||
|
|
go tool cover -func=coverage.txt
|
||
|
|
go tool cover -html=coverage.txt -o coverage.html
|
||
|
|
open coverage.html
|