12 lines
No EOL
258 B
Bash
Executable file
12 lines
No EOL
258 B
Bash
Executable file
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 |