php-parser/.travis.yml

13 lines
453 B
YAML
Raw Normal View History

2018-08-06 17:52:57 +00:00
language: go
2018-08-06 21:57:30 +00:00
branches:
only:
- master
2018-08-06 17:52:57 +00:00
before_script:
2020-03-09 11:55:35 +00:00
- env GO111MODULE=on go mod download
2018-08-06 17:52:57 +00:00
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
2020-03-09 11:55:35 +00:00
- env GO111MODULE=on go test -coverprofile c.out ./...
2018-08-06 17:52:57 +00:00
after_script:
- ./cc-test-reporter after-build --coverage-input-type gocov --exit-code $TRAVIS_TEST_RESULT