mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 17:06:57 -06:00
0524d0c625
closes #5739
37 lines
834 B
YAML
37 lines
834 B
YAML
machine:
|
|
node:
|
|
version: 5.11.1
|
|
environment:
|
|
GOPATH: "/home/ubuntu/.go_workspace"
|
|
ORG_PATH: "github.com/grafana"
|
|
REPO_PATH: "${ORG_PATH}/grafana"
|
|
|
|
dependencies:
|
|
override:
|
|
- rm -rf ${GOPATH}/src/${REPO_PATH}
|
|
- mkdir -p ${GOPATH}/src/${ORG_PATH}
|
|
- ln -s ~/grafana ${GOPATH}/src/${ORG_PATH}
|
|
- go get github.com/tools/godep
|
|
- rm -rf node_modules
|
|
- npm install -g npm
|
|
- npm install
|
|
|
|
test:
|
|
override:
|
|
# FMT
|
|
- test -z "$(gofmt -s -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)"
|
|
# GO VET
|
|
- go vet ./pkg/...
|
|
# Go test
|
|
- godep go test ./pkg/...
|
|
# js tests
|
|
- npm test
|
|
- npm run coveralls
|
|
|
|
deployment:
|
|
master:
|
|
branch: master
|
|
owner: grafana
|
|
commands:
|
|
- ./trigger_grafana_packer.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}
|