aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml18
-rw-r--r--README.md4
-rw-r--r--config/session.go2
3 files changed, 21 insertions, 3 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
diff --git a/README.md b/README.md
index fcf93e8..84d494d 100644
--- a/README.md
+++ b/README.md
@@ -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)
diff --git a/config/session.go b/config/session.go
index 337a14b..912fed0 100644
--- a/config/session.go
+++ b/config/session.go
@@ -29,7 +29,7 @@ import (
type Session struct {
UserID string `json:"-"`
- path string `json:"-"`
+ path string
AccessToken string
NextBatch string
FilterID string