33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
---
|
|
machine:
|
|
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
|
|
|
|
dependencies:
|
|
pre:
|
|
- npm install -g node-sass
|
|
- git config --global url."git@github.com:".insteadOf "https://github.com/"
|
|
- mkdir -p ${HOME}/.go_workspace/src/github.com/influxdata
|
|
- ln -sf ${HOME}/chronograf ${HOME}/.go_workspace/src/github.com/influxdata
|
|
- "make clean":
|
|
pwd: ../.go_workspace/src/github.com/influxdata/chronograf
|
|
- "make":
|
|
pwd: ../.go_workspace/src/github.com/influxdata/chronograf
|
|
|
|
test:
|
|
override:
|
|
- make test
|
|
|
|
deployment:
|
|
heroku:
|
|
branch: master
|
|
commands:
|
|
- make docker
|
|
- docker login -e $HEROKU_EMAIL -u $HEROKU_EMAIL -p $HEROKU_PASS registry.heroku.com
|
|
- docker tag chronograf registry.heroku.com/mrfusion-acc/web
|
|
- docker push registry.heroku.com/mrfusion-acc/web
|