Adds go module support that came into effect in go version 1.11 (#201)

Adds go module support that came into effect in go version 1.11
This commit is contained in:
Ryan O'Hara-Reid
2018-11-01 17:40:54 +11:00
committed by Adrian Gallagher
parent 506940587e
commit 5dd0fecc62
6 changed files with 36 additions and 148 deletions

19
testdata/test.sh vendored
View File

@@ -1,19 +0,0 @@
#!/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