Enable travis for codeclimate coverage reports

This commit is contained in:
Tulir Asokan 2018-04-10 21:08:43 +03:00
parent 10ffa6189f
commit 2d950126aa
3 changed files with 21 additions and 3 deletions

18
.travis.yml Normal file
View File

@ -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

View File

@ -2,8 +2,8 @@
![Languages](https://img.shields.io/github/languages/top/tulir/gomuks.svg)
[![License](https://img.shields.io/github/license/tulir/gomuks.svg)](LICENSE)
[![Release](https://img.shields.io/github/release/tulir/gomuks/all.svg)](https://github.com/tulir/gomuks/releases)
[![Maintainability](https://img.shields.io/codeclimate/maintainability/tulir/gomuks.svg)](https://codeclimate.com/github/tulir/gomuks)
[![Coverage](https://img.shields.io/codeclimate/coverage/tulir/gomuks.svg)](https://codeclimate.com/github/tulir/gomuks)
[![Maintainability](https://shields-staging.herokuapp.com/codeclimate/maintainability/tulir/gomuks.svg)](https://codeclimate.com/github/tulir/gomuks)
[![Coverage](https://shields-staging.herokuapp.com/codeclimate/coverage/tulir/gomuks.svg)](https://codeclimate.com/github/tulir/gomuks)
![Preview](https://img.mau.lu/tlVuN.png)

View File

@ -29,7 +29,7 @@ import (
type Session struct {
UserID string `json:"-"`
path string `json:"-"`
path string
AccessToken string
NextBatch string
FilterID string