2019-11-20 16:11:28 +00:00
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
name: Running Nomad Tests
|
2019-11-21 01:39:23 +00:00
|
|
|
no_output_timeout: 20m
|
2019-11-20 16:11:28 +00:00
|
|
|
command: |
|
|
|
|
if [ -z $GOTEST_PKGS_EXCLUDE ];
|
|
|
|
then
|
|
|
|
unset GOTEST_PKGS_EXCLUDE
|
|
|
|
else
|
|
|
|
unset GOTEST_PKGS
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -z $GOTESTARCH ]; then
|
|
|
|
export GOARCH="$GOTESTARCH";
|
|
|
|
fi
|
|
|
|
|
|
|
|
mkdir -p /tmp/test-reports
|
|
|
|
sudo -E PATH="$GOPATH/bin:/usr/local/go/bin:$PATH" make generate-structs
|
2020-05-30 14:29:47 +00:00
|
|
|
|
|
|
|
if [ ! -z $GOTEST_MOD ]; then
|
|
|
|
sudo -E PATH="$GOPATH/bin:/usr/local/go/bin:$PATH" make test-nomad-module
|
|
|
|
else
|
|
|
|
sudo -E PATH="$GOPATH/bin:/usr/local/go/bin:$PATH" make test-nomad
|
|
|
|
fi
|