1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

Update gitlab ci config file

This commit is contained in:
Timothy 2016-05-11 15:53:52 +08:00
parent 874ffc64ad
commit 843ea40ea4

View File

@ -1,25 +1,19 @@
image: golang:1.6.2
before_script:
- export CURRENT_BUILD_PATH=/builds/timothy/godns
- export GOPATH=$(pwd)
stages:
- build
- test
init-env:
stage: init
script:
build-my-project:
image: go:1.6.2
stage: build
script:
- cd $CURRENT_BUILD_PATH
- go get
- go build
test-my-project:
image: go:1.6.2
stage: test
script:
- cd $CURRENT_BUILD_PATH
- go test