1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 21:45:26 +01:00
Files
sops/test.sh
2021-07-24 15:56:57 +09:00

21 lines
365 B
Bash
Executable File

#!/usr/bin/env bash
set -e
echo "" > coverage.txt
failed=0
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic $d && true
rc=$?
if [ $rc != 0 ]; then
failed=$rc
fi
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done
exit ${failed}