Last active
March 16, 2018 10:49
-
-
Save jostyee/942b7bb3ff2e4636f7b174288ecf5fbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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