Update .gitlab-ci.yml
This commit is contained in:
parent
b4c9da200b
commit
6be3652505
|
@ -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:
|
stages:
|
||||||
- install-environment
|
- install-environment
|
||||||
- build
|
- build
|
||||||
|
@ -40,5 +26,10 @@ install-go:
|
||||||
build-warehost:
|
build-warehost:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
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
|
- cd $CURRENT_BUILD_PATH/cmd/warehost
|
||||||
- go build
|
- go build
|
Reference in New Issue