This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2017-05-17 21:33:23 +02:00
|
|
|
machine:
|
|
|
|
environment:
|
|
|
|
GOROOT: ""
|
|
|
|
PATH: "/usr/local/go/bin:/usr/local/go_workspace/bin:~/.go_workspace/bin:${PATH}"
|
|
|
|
GOPATH: "${HOME}/.go_workspace"
|
|
|
|
|
|
|
|
dependencies:
|
|
|
|
override:
|
|
|
|
- mkdir -p ~/.go_workspace/src/github.com/${CIRCLE_PROJECT_USERNAME}
|
|
|
|
- ln -s ${HOME}/${CIRCLE_PROJECT_REPONAME} ${HOME}/.go_workspace/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
|
|
|
|
- go get -t -d -v ./...
|
|
|
|
- go install github.com/genofire/hs_master-kss-monolith/cmd/stock
|
|
|
|
post:
|
|
|
|
- cp ~/.go_workspace/bin/stock .
|
|
|
|
- tar -cvzf stock-builded.tar.gz contrib webroot stock
|
|
|
|
- mv stock-builded.tar.gz $CIRCLE_ARTIFACTS
|
|
|
|
|
|
|
|
test:
|
|
|
|
pre:
|
|
|
|
- go get github.com/mattn/goveralls
|
|
|
|
- go get golang.org/x/tools/cmd/cover
|
|
|
|
override:
|
|
|
|
- ./.test-coverage circle-ci
|
|
|
|
|
|
|
|
deployment:
|
|
|
|
staging:
|
|
|
|
branch: master
|
|
|
|
commands:
|
2017-05-18 00:34:26 +02:00
|
|
|
- ./deploy.sh $HOST_FOR_STAGING $PORT_FOR_STAGING
|