Commit a70b8fdb authored by Administrator's avatar Administrator

Update .gitlab-ci.yml

parent 68571421
Pipeline #93 passed with stages
in 43 seconds
...@@ -25,18 +25,17 @@ format: ...@@ -25,18 +25,17 @@ format:
stage: test stage: test
script: script:
- go version - go version
- go mod init test
- go get
#- go fmt $(go list ./... | grep -v /vendor/) #- go fmt $(go list ./... | grep -v /vendor/)
#- go vet $(go list ./... | grep -v /vendor/) #- go vet $(go list ./... | grep -v /vendor/)
#- go test -race $(go list ./... | grep -v /vendor/) #- go test -race $(go list ./... | grep -v /vendor/)
- go build -o test.exe
tags: tags:
- pw_build01 - pw_build01
compile: compile:
stage: build stage: build
script: script:
#- go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/mybinary #- go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/mybinary
- go mod init test
- go get
- go build -o test.exe - go build -o test.exe
artifacts: artifacts:
paths: paths:
......
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