Move project into GOPATH during CI tests

parent 37e61c2a
Pipeline #39473582 passed with stage
in 38 seconds
......@@ -3,8 +3,11 @@ image: golang:1.11.2-alpine
variables:
CGO_ENABLED: "0"
GO111MODULE: "off"
PROJECT_PATH: "/go/src/gitlab.com/zerok/container-inventory"
test:
script:
- go test ./... -cover
- "mkdir -p ${PROJECT_PATH}"
- "cp -R * ${PROJECT_PATH}"
- "cd ${PROJECT_PATH} && go test ./... -cover"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment