2015-03-07 05:40:19 -06:00
|
|
|
machine:
|
2015-09-13 05:13:47 -05:00
|
|
|
node:
|
2016-06-17 07:36:10 -05:00
|
|
|
version: 5.11.1
|
2015-03-07 06:07:22 -06:00
|
|
|
environment:
|
|
|
|
GOPATH: "/home/ubuntu/.go_workspace"
|
|
|
|
ORG_PATH: "github.com/grafana"
|
|
|
|
REPO_PATH: "${ORG_PATH}/grafana"
|
2015-03-07 05:40:19 -06:00
|
|
|
|
2015-03-07 05:52:31 -06:00
|
|
|
dependencies:
|
2015-03-07 05:46:17 -06:00
|
|
|
override:
|
2015-03-07 06:07:22 -06:00
|
|
|
- rm -rf ${GOPATH}/src/${REPO_PATH}
|
|
|
|
- mkdir -p ${GOPATH}/src/${ORG_PATH}
|
2015-03-07 08:24:52 -06:00
|
|
|
- ln -s ~/grafana ${GOPATH}/src/${ORG_PATH}
|
2015-03-07 05:52:31 -06:00
|
|
|
- go get github.com/tools/godep
|
2016-01-26 13:44:24 -06:00
|
|
|
- rm -rf node_modules
|
2016-01-26 13:33:00 -06:00
|
|
|
- npm install -g npm
|
2015-03-07 05:55:26 -06:00
|
|
|
- npm install
|
2015-03-07 05:46:17 -06:00
|
|
|
|
2015-03-07 05:40:19 -06:00
|
|
|
test:
|
2015-03-07 05:43:17 -06:00
|
|
|
override:
|
2015-03-07 09:23:22 -06:00
|
|
|
- test -z "$(gofmt -s -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)"
|
2015-03-07 12:51:19 -06:00
|
|
|
- go vet ./pkg/...
|
2016-08-09 07:21:01 -05:00
|
|
|
# JS tests
|
2016-04-25 11:53:15 -05:00
|
|
|
- npm test
|
2015-05-02 10:05:07 -05:00
|
|
|
- npm run coveralls
|
2016-08-09 07:21:01 -05:00
|
|
|
# GO tests
|
|
|
|
- godep go test -v ./pkg/...
|
2016-01-27 13:18:35 -06:00
|
|
|
|
|
|
|
deployment:
|
|
|
|
master:
|
|
|
|
branch: master
|
|
|
|
owner: grafana
|
2016-04-25 11:53:15 -05:00
|
|
|
commands:
|
2016-08-29 09:10:19 -05:00
|
|
|
- ./trigger_grafana_packer.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}
|