2016-09-10 00:45:06 +00:00
|
|
|
---
|
|
|
|
machine:
|
2016-09-16 21:07:58 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
post:
|
|
|
|
- go version
|
|
|
|
- go version | grep 1.7.1 || (sudo rm -rf /usr/local/go && wget https://storage.googleapis.com/golang/go1.7.1.linux-amd64.tar.gz && sudo tar -C /usr/local -xzf go1.7.1.linux-amd64.tar.gz)
|
|
|
|
- go version
|
2016-09-10 00:45:06 +00:00
|
|
|
|
|
|
|
dependencies:
|
2016-09-16 21:07:58 +00:00
|
|
|
pre:
|
2016-09-16 20:11:00 +00:00
|
|
|
- npm install -g node-sass
|
2016-09-16 21:07:58 +00:00
|
|
|
- git config --global url."git@github.com:".insteadOf "https://github.com/"
|
|
|
|
- mkdir -p ${HOME}/.go_workspace/src/github.com/influxdata
|
2016-10-20 14:38:23 +00:00
|
|
|
- ln -sf ${HOME}/chronograf ${HOME}/.go_workspace/src/github.com/influxdata
|
2016-11-08 21:42:56 +00:00
|
|
|
- "make clean":
|
|
|
|
pwd: ../.go_workspace/src/github.com/influxdata/chronograf
|
2016-09-27 21:27:43 +00:00
|
|
|
- "make":
|
2016-10-20 14:38:23 +00:00
|
|
|
pwd: ../.go_workspace/src/github.com/influxdata/chronograf
|
2016-09-15 20:00:56 +00:00
|
|
|
|
2016-09-10 00:45:06 +00:00
|
|
|
test:
|
2016-09-16 21:07:58 +00:00
|
|
|
override:
|
|
|
|
- make test
|
2016-09-16 20:47:38 +00:00
|
|
|
|
|
|
|
deployment:
|
2016-09-16 21:07:58 +00:00
|
|
|
heroku:
|
2016-11-08 00:53:19 +00:00
|
|
|
branch: master
|
2016-09-16 21:16:20 +00:00
|
|
|
commands:
|
|
|
|
- make docker
|
|
|
|
- docker login -e $HEROKU_EMAIL -u $HEROKU_EMAIL -p $HEROKU_PASS registry.heroku.com
|
2016-10-20 14:38:23 +00:00
|
|
|
- docker tag chronograf registry.heroku.com/mrfusion-acc/web
|
2016-09-16 21:16:20 +00:00
|
|
|
- docker push registry.heroku.com/mrfusion-acc/web
|