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:
|
|
|
|
- go get -u golang.org/x/tools/cmd/goyacc
|
2019-02-25 15:59:06 +00:00
|
|
|
- go get -u github.com/pkg/profile
|
2018-08-06 17:52:57 +00:00
|
|
|
- go get -u github.com/cznic/golex/lex
|
|
|
|
- go get -u github.com/yookoala/realpath
|
|
|
|
- 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:
|
|
|
|
- go test -coverprofile c.out ./...
|
|
|
|
after_script:
|
|
|
|
- ./cc-test-reporter after-build --coverage-input-type gocov --exit-code $TRAVIS_TEST_RESULT
|