circle.yml 813 B

12345678910111213141516171819202122232425262728293031323334
  1. machine:
  2. node:
  3. version: 5.11.1
  4. environment:
  5. GOPATH: "/home/ubuntu/.go_workspace"
  6. ORG_PATH: "github.com/grafana"
  7. REPO_PATH: "${ORG_PATH}/grafana"
  8. dependencies:
  9. override:
  10. - rm -rf ${GOPATH}/src/${REPO_PATH}
  11. - mkdir -p ${GOPATH}/src/${ORG_PATH}
  12. - ln -s ~/grafana ${GOPATH}/src/${ORG_PATH}
  13. - go get github.com/tools/godep
  14. - rm -rf node_modules
  15. - npm install -g npm
  16. - npm install
  17. test:
  18. override:
  19. - test -z "$(gofmt -s -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)"
  20. - go vet ./pkg/...
  21. # JS tests
  22. - npm test
  23. - npm run coveralls
  24. # GO tests
  25. - godep go test -v ./pkg/...
  26. deployment:
  27. master:
  28. branch: master
  29. owner: grafana
  30. commands:
  31. - ./trigger_grafana_packer.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN}