| 1 | language: go |
| 2 | |
| 3 | sudo: false |
| 4 | |
| 5 | branches: |
| 6 | except: |
| 7 | - release |
| 8 | |
| 9 | branches: |
| 10 | only: |
| 11 | - master |
| 12 | - develop |
| 13 | - travis |
| 14 | |
| 15 | go: |
| 16 | - 1.12.x |
| 17 | - 1.13.x |
| 18 | - tip |
| 19 | |
| 20 | matrix: |
| 21 | allow_failures: |
| 22 | - go: tip |
| 23 | |
| 24 | before_install: |
| 25 | - if [ -n "$GH_USER" ]; then git config --global github.user ${GH_USER}; fi; |
| 26 | - if [ -n "$GH_TOKEN" ]; then git config --global github.token ${GH_TOKEN}; fi; |
| 27 | - go get github.com/mattn/goveralls |
| 28 | |
| 29 | before_script: |
| 30 | - make deps |
| 31 | |
| 32 | script: |
| 33 | - make qa |
| 34 | |
| 35 | after_failure: |
| 36 | - cat ./target/test/report.xml |
| 37 | |
| 38 | after_success: |
| 39 | - if [ "$TRAVIS_GO_VERSION" = "1.9" ]; then $HOME/gopath/bin/goveralls -covermode=count -coverprofile=target/report/coverage.out -service=travis-ci; fi; |