aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-10 21:08:43 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-10 21:27:57 +0300
commit2d950126aa1450f543d03183d94098b1907244a2 (patch)
tree1f95ff435935bccd464794ad286cb6747fb38d77 /.travis.yml
parent10ffa6189f89dd1758f034eaeadd1042c970f1b8 (diff)
Enable travis for codeclimate coverage reports
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..47aae08
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,18 @@
+language: go
+go_import_path: maunium.net/go/gomuks
+go:
+ - "1.10"
+notifications:
+ email: false
+install:
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
+ - chmod +x ./cc-test-reporter
+ - go get -u github.com/stretchr/testify/assert
+ - go get
+before_script:
+ - ./cc-test-reporter before-build
+script:
+ - go test -v -race ./... -coverprofile c.out
+ - go vet ./...
+after_script:
+ - ./cc-test-reporter after-build --coverage-input-type gocov --exit-code $TRAVIS_TEST_RESULT