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