12 lines
258 B
Bash
12 lines
258 B
Bash
|
pushd $(dirname "$0")/.. # run from root dir
|
||
|
|
||
|
set -e
|
||
|
|
||
|
go build -cover -o target/pilgrim_coverage main.go
|
||
|
|
||
|
chmod 777 ./target/pilgrim_coverage
|
||
|
GOCOVERDIR=coverage ./target/pilgrim
|
||
|
|
||
|
go tool covdata percent -i=coverage
|
||
|
|
||
|
popd # switch back to dir we started from
|