Skip to content
Snippets Groups Projects
Commit 3f310959 authored by Christian Pointner's avatar Christian Pointner
Browse files

Add .gitlab-ci.yml

parent 6f81e69f
No related branches found
No related tags found
No related merge requests found
image: golang:latest
variables:
REPO_NAME: gitlab.servus.at/autoradio/tank
before_script:
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
stages:
- test
- build
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:
- go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/tank
artifacts:
paths:
- tank
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment