circle.yml 713 B

1234567891011121314151617181920212223242526272829
  1. machine:
  2. node:
  3. version: 4.0
  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. # FMT
  20. - test -z "$(gofmt -s -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)"
  21. # GO VET
  22. - go vet ./pkg/...
  23. # Go test
  24. - godep go test -v ./pkg/...
  25. # js tests
  26. - ./node_modules/grunt-cli/bin/grunt test
  27. - npm run coveralls