hcl/.circleci/test.sh
2019-10-01 15:59:10 -07:00

13 lines
312 B
Bash
Executable File

#!/bin/bash
set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -coverprofile=/artifacts/profile.out -covermode=atomic $d
if [ -f /artifacts/profile.out ]; then
cat /artifacts/profile.out >> /artifacts/coverage.txt
rm /artifacts/profile.out
fi
done