From 6be365250568d0301f75fa993ababcf1c0d311de Mon Sep 17 00:00:00 2001 From: Geno Date: Thu, 22 Sep 2016 15:06:42 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e639844..49642ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,17 +1,3 @@ -# See docs/examples here: -# http://doc.gitlab.com/ce/ci/quick_start/README.html -# http://doc.gitlab.com/ce/ci/yaml/README.html - -# GitLab CI template for Go tests. Note this installs -# a new working copy of Go (1.5.2 in this case) -# in a non-standard path such that sudo/root is not -# needed for the install stage. - -# note that this particular install-environment stage -# is overly verbose in order to debug anything tricky -# or weird in your environment - feel free to trim it -# down as needed - stages: - install-environment - build @@ -40,5 +26,10 @@ install-go: build-warehost: stage: build script: + - export GOROOT=$HOME/golang/go + - export GOPATH=$HOME/gopath + - export PATH=$PATH:$GOROOT/bin + - export PATH=$PATH:$GOPATH/bin + - go env - cd $CURRENT_BUILD_PATH/cmd/warehost - go build \ No newline at end of file