You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-library/vendor/github.com/dgraph-io/ristretto/test.sh

21 lines
582 B

#! /bin/sh
starttest() {
set -e
GO111MODULE=on go test -race ./...
}
if [ -z "${TEAMCITY_VERSION}" ]; then
# running locally, so start test in a container
# TEAMCITY_VERSION=local will avoid recursive calls, when it would be running in container
docker run --rm --name ristretto-test -ti \
-v `pwd`:/go/src/github.com/dgraph-io/ristretto \
--workdir /go/src/github.com/dgraph-io/ristretto \
--env TEAMCITY_VERSION=local \
golang:1.13 \
sh test.sh
else
# running in teamcity, since teamcity itself run this in container, let's simply run this
starttest
fi