.travis.yml 656 B

12345678910111213141516171819202122232425262728293031
  1. language: go
  2. go:
  3. - "1.10.x"
  4. - "1.11.x"
  5. - "1.12.x"
  6. - master
  7. matrix:
  8. allow_failures:
  9. - go: master
  10. fast_finish: true
  11. env:
  12. global:
  13. - CC_TEST_REPORTER_ID=68feaa3410049ce73e145287acbcdacc525087a30627f96f04e579e75bd71c00
  14. before_script:
  15. - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  16. - chmod +x ./cc-test-reporter
  17. - ./cc-test-reporter before-build
  18. install:
  19. - curl -sL https://taskfile.dev/install.sh | sh
  20. script:
  21. - diff -u <(echo -n) <(./bin/task lint)
  22. - ./bin/task test-coverage
  23. after_script:
  24. - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT