From 9e365517fb353b9f50e872df6429e5e4a4291d58 Mon Sep 17 00:00:00 2001 From: Timothy Date: Wed, 11 May 2016 15:23:36 +0800 Subject: [PATCH] Update gitlab ci config file --- .gitlab-ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 03ff754..2167b9f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,21 @@ stages: + - init - build - test +init-env: + stage: init + script: + - export CURRENT_BUILD_PATH=/builds/timothy/godns build-my-project: stage: build script: - - cd $CURRENT_BUILD_PATH + - cd $CURRENT_BUILD_PATH + - go get - go build test-my-project: stage: test script: - cd $CURRENT_BUILD_PATH - - go test \ No newline at end of file + - go test