diff options
-rw-r--r-- | .travis.yml | 18 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | config/session.go | 2 |
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 @@ -2,8 +2,8 @@  [](LICENSE) [](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)  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 |