15 lines
402 B
Bash
Executable File
15 lines
402 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
echo "mode: atomic\n" > coverage.txt
|
|
|
|
# TODO it's very weird, tests of api/service always fails on CirCleCI environment,
|
|
# but works on local
|
|
for d in ./image ./api/service; do
|
|
go test -race -coverprofile=profile.out -covermode=atomic $d
|
|
if [ -f profile.out ]; then
|
|
cat profile.out | grep -v "mode: atomic" >> coverage.txt
|
|
rm profile.out
|
|
fi
|
|
done
|