2017-06-12 22:32:27 +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/logmania/cmd/logmania
|
|
|
|
post:
|
|
|
|
- cp ~/.go_workspace/bin/logmania logmania.bin
|
|
|
|
- tar -cvzf logmania-builded.tar.gz logmania.bin logmania_example.conf
|
|
|
|
- mv logmania-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:
|
|
|
|
- ./deploy.sh $HOST_FOR_STAGING $PORT_FOR_STAGING
|
2017-06-12 23:02:03 +02:00
|
|
|
|
|
|
|
notify:
|
|
|
|
webhooks:
|
|
|
|
- url: https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN
|
|
|
|
- url: https://hook2xmpp.pub.warehost.de/circleci
|