Add simple gitlab-ci.yml

master
Thomas Lynch 2 years ago
parent fe38d8cf7a
commit 1fc700836e
  1. 26
      .gitlab-ci.yml

@ -0,0 +1,26 @@
image: golang:latest
stages:
- test
- build
# - deploy
format:
stage: test
script:
- go fmt $(go list ./... | grep -v /vendor/)
- go vet $(go list ./... | grep -v /vendor/)
- go test -race $(go list ./... | grep -v /vendor/)
compile:
stage: build
script:
- mkdir -p mybinaries
- go build -o mybinaries ./...
artifacts:
paths:
- mybinaries
# deploy:
# stage: deploy
# script: echo "TODO"
Loading…
Cancel
Save