summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-12 02:55:04 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-12 02:55:04 -0400
commitc2af13309490228b2e821b8f390afdd57018b3ab (patch)
treee2378002e0d0b870662106a452529a1620f67f9c
parentf5d40abf409016f297b2f0749ce9d26299381828 (diff)
downloadgetwtxt-c2af13309490228b2e821b8f390afdd57018b3ab.tar.gz
adding codeclimate coverage report to travis config
-rw-r--r--.travis.yml16
1 files changed, 15 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 89af3bd..81a92e8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,4 +13,18 @@ dist: xenial
 env:
   - GO111MODULE=on
 
-script: cd svc && go test -v
+before_script:
+  - sudo apt-get update
+  - sudo apt-get install -y libc6:i386 libstdc++6:i386
+  - 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: 
+  - cd svc
+  - go test -v --coverprofile=../c.out
+  - cd ..
+  - make
+
+after_script:
+  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT