Files
gocryptotrader/testdata/test.sh
2017-08-22 10:26:13 +10:00

20 lines
420 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ -n "$TRAVIS_BUILD_DIR" ]; then
cd $TRAVIS_BUILD_DIR
else
cd $GOPATH/src/github.com/thrasher-/gocryptotrader
fi
echo "" > testdata/coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic -cover $d
if [ -f profile.out ]; then
cat profile.out >> testdata/coverage.txt
rm profile.out
fi
done