Enable travis for codeclimate coverage reports
This commit is contained in:
parent
10ffa6189f
commit
2d950126aa
18
.travis.yml
Normal file
18
.travis.yml
Normal 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
|
@ -2,8 +2,8 @@
|
|||||||

|

|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
[](https://github.com/tulir/gomuks/releases)
|
[](https://github.com/tulir/gomuks/releases)
|
||||||
[](https://codeclimate.com/github/tulir/gomuks)
|
[](https://codeclimate.com/github/tulir/gomuks)
|
||||||
[](https://codeclimate.com/github/tulir/gomuks)
|
[](https://codeclimate.com/github/tulir/gomuks)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
|
|
||||||
type Session struct {
|
type Session struct {
|
||||||
UserID string `json:"-"`
|
UserID string `json:"-"`
|
||||||
path string `json:"-"`
|
path string
|
||||||
AccessToken string
|
AccessToken string
|
||||||
NextBatch string
|
NextBatch string
|
||||||
FilterID string
|
FilterID string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user