Enable go test in ci

pull/2407/head
Erik Wilson 4 years ago
parent 92d04355f4
commit 992ca52c31
No known key found for this signature in database
GPG Key ID: 28E43BB8BE202CF8

@ -152,7 +152,7 @@ func TestFailFast(t *testing.T) {
defer os.RemoveAll(tmpDir) defer os.RemoveAll(tmpDir)
cfg := cmds.Agent{ cfg := cmds.Agent{
ServerURL: "http://127.0.0.1:-1/", ServerURL: "http://127.0.0.1:0/",
DataDir: tmpDir, DataDir: tmpDir,
} }

@ -0,0 +1,11 @@
#!/bin/bash
cd $(dirname $0)/..
rm -rf build/data
mkdir -p build/data
GO=${GO-go}
echo Running: "${GO}" generate
"${GO}" generate

@ -31,3 +31,5 @@ if [ -n "$DIRTY" ]; then
git status --porcelain --untracked-files=no git status --porcelain --untracked-files=no
exit 1 exit 1
fi fi
"${GO}" test -v ./...

Loading…
Cancel
Save