Explorar o código

Don't use godep to run tests

Jakob Borg %!s(int64=10) %!d(string=hai) anos
pai
achega
a52811dfa3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      build.sh

+ 1 - 1
build.sh

@@ -108,7 +108,7 @@ case "${1:-default}" in
 		# For every package in the repo
 		# For every package in the repo
 		for dir in $(go list ./...) ; do
 		for dir in $(go list ./...) ; do
 			# run the tests
 			# run the tests
-			godep go test -race -coverprofile=profile.out $dir
+			GOPATH="$(pwd)/Godeps/_workspace:$GOPATH" go test -race -coverprofile=profile.out $dir
 			if [ -f profile.out ] ; then
 			if [ -f profile.out ] ; then
 				# and if there was test output, append it to coverage.out
 				# and if there was test output, append it to coverage.out
 				grep -v "mode: " profile.out >> coverage.out
 				grep -v "mode: " profile.out >> coverage.out