You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
649 B

7 years ago
7 years ago
  1. machine:
  2. environment:
  3. GOPATH: "${HOME}/.go_workspace"
  4. PROJECT_PARENT_PATH: "$GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME"
  5. PROJECT_PATH: $GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
  6. hosts:
  7. localhost: 127.0.0.1
  8. dependencies:
  9. override:
  10. - mkdir -p "$PROJECT_PARENT_PATH"
  11. - ln -sf "$HOME/$CIRCLE_PROJECT_REPONAME/" "$PROJECT_PATH"
  12. post:
  13. - go version
  14. test:
  15. override:
  16. - cd $PROJECT_PATH && make get_tools && bash ./test.sh
  17. post:
  18. - cd "$PROJECT_PATH" && bash <(curl -s https://codecov.io/bash) -f coverage.txt
  19. - cd "$PROJECT_PATH" && mv coverage.txt "${CIRCLE_ARTIFACTS}"