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