tile38/scripts/test.sh

15 lines
266 B
Bash
Raw Permalink Normal View History

#!/bin/bash
set -e
cd $(dirname "${BASH_SOURCE[0]}")/..
2019-11-18 20:56:41 +03:00
export CGO_ENABLED=0
# if [ "$NOMODULES" != "1" ]; then
# export GO111MODULE=on
# export GOFLAGS=-mod=vendor
# fi
2019-11-18 20:56:41 +03:00
cd tests && go test && cd ..
go test $(go list ./... | grep -v /vendor/ | grep -v /tests)