circle.yml 612 B

123456789101112131415161718192021222324
  1. machine:
  2. environment:
  3. GOPATH: "/home/ubuntu/.go_workspace"
  4. ORG_PATH: "github.com/grafana"
  5. REPO_PATH: "${ORG_PATH}/grafana"
  6. dependencies:
  7. override:
  8. - rm -rf ${GOPATH}/src/${REPO_PATH}
  9. - mkdir -p ${GOPATH}/src/${ORG_PATH}
  10. - ln -s ~/grafana ${GOPATH}/src/${ORG_PATH}
  11. - go get github.com/tools/godep
  12. - npm install
  13. test:
  14. override:
  15. # FMT
  16. - test -z "$(gofmt -s -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)"
  17. # GO VET
  18. - go vet ./pkg/...
  19. # Go test
  20. - godep go test -v ./pkg/...
  21. # js tests
  22. - ./node_modules/grunt-cli/bin/grunt test