From 843ea40ea485965984f932250ce619f17aaaef87 Mon Sep 17 00:00:00 2001 From: Timothy Date: Wed, 11 May 2016 15:53:52 +0800 Subject: [PATCH] Update gitlab ci config file --- .gitlab-ci.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f69957c..f082878 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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