Skip to content

Commit

Permalink
integrate with travis, try to check low go version
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsk committed Jun 24, 2019
1 parent 920f6b0 commit 5efe1fc
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
language: go

go:
- master
- 1.x
- 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x

sudo: false

before_install:
- export CODECLIMATE=https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64

before_script:
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then curl -L $CODECLIMATE > ./cc-test-reporter; fi
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then chmod +x ./cc-test-reporter; fi
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then ./cc-test-reporter before-build; fi

script:
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then make test-with-coverage-profile; else make test; fi

after_script:
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then ./cc-test-reporter after-build -t gocov --exit-code $TRAVIS_TEST_RESULT; fi

notifications:
slack: octolab:1eMS7IqOArBipiu31jYVd0cN

0 comments on commit 5efe1fc

Please sign in to comment.