Skip to content

Instantly share code, notes, and snippets.

@jostyee
Last active March 16, 2018 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jostyee/942b7bb3ff2e4636f7b174288ecf5fbc to your computer and use it in GitHub Desktop.
Save jostyee/942b7bb3ff2e4636f7b174288ecf5fbc to your computer and use it in GitHub Desktop.
image: golang:1.10-alpine
stages:
- test
- build
before_script:
- go get -u github.com/golang/dep/cmd/dep
- mkdir -p $GOPATH/src
- cd $GOPATH/src
- ln -s $CI_PROJECT_DIR
- cd $CI_PROJECT_NAME
- dep ensure
test:
stage: test
script:
- go test -v -race -cover $(go list ./... | grep -v /vendor/)
build:
stage: build
script:
- go build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment