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