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.

30 lines
533 B

  1. sudo: false
  2. language: go
  3. go:
  4. - 1.8.x
  5. - 1.9.x
  6. - tip
  7. matrix:
  8. allow_failures:
  9. - go: tip
  10. before_install:
  11. - go get -u github.com/golang/dep/cmd/dep github.com/golang/lint/golint honnef.co/go/tools/cmd/megacheck
  12. - npm install -g codeclimate-test-reporter
  13. install:
  14. - dep ensure
  15. before_script:
  16. - go vet
  17. - golint -set_exit_status=1
  18. - megacheck
  19. script:
  20. - go test -covermode=atomic -coverprofile=coverage.txt
  21. after_success:
  22. - bash <(curl -s https://codecov.io/bash)
  23. - codeclimate-test-reporter < coverage.txt