From 8e266004933149dcb5f579f29935c9feb77af413 Mon Sep 17 00:00:00 2001 From: Neven Miculinic Date: Thu, 28 Mar 2019 16:28:45 +0100 Subject: [PATCH] Added CGO_ENABLED for tests --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f41cdd9..d9b10f3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,7 @@ go_build: - mkdir -p .cache/go - export GOCACHE="$CI_PROJECT_DIR/.cache/cache" - export GOPATH="$CI_PROJECT_DIR/.cache/go" - - go test -race ./... + - CGO_ENABLED=1 go test -race ./... - mkdir -p build || true - go env - GOOS=linux GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o build/${CI_PROJECT_NAME}-amd64 ./cmd/wg-quick