From c005fa3247a0050f2519ad1c1fdb0a8184f3721c Mon Sep 17 00:00:00 2001 From: Christian Claus Date: Thu, 24 May 2018 21:43:43 +0200 Subject: [PATCH] Add coverage calculation to travis file --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index f4cc0a2..263d0e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,24 @@ language: go + git: depth: false + go: - 1.9.5 - "1.10.1" + os: - linux - osx - windows + install: - go get github.com/golang/dep/cmd/dep - go get github.com/magefile/mage - mage -v install + +script: + - go test ./... -race -coverprofile=coverage.txt -covermode=atomic + +after_success: + - bash <(curl -s https://codecov.io/bash)