Skip to content

Commit

Permalink
test in go v1.8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Jul 5, 2017
1 parent 20eb27f commit dba3794
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 13 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
language: go
go:
- 1.7
- 1.8
- 1.8.1
- 1.8.2
- 1.8.3
before_install:
- go get -t -v ./...
- go get github.com/modocache/gover
- go get github.com/mattn/goveralls
script:
- go test -v -coverprofile=negotiator.coverprofile
- gover
- goveralls -coverprofile=gover.coverprofile -service=travis-ci
- goveralls -coverprofile=gover.coverprofile -service=travis-ci
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016 David Cai
Copyright (c) 2016-2017 go-http-utils

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# negotiator

[![Build Status](https://travis-ci.org/go-http-utils/negotiator.svg?branch=master)](https://travis-ci.org/go-http-utils/negotiator)
[![Coverage Status](https://coveralls.io/repos/github/go-http-utils/negotiator/badge.svg?branch=master)](https://coveralls.io/github/go-http-utils/negotiator?branch=master)

Expand Down
3 changes: 3 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@
// // -> ""

package negotiator

// Version is this package's version
const Version = "1.0.0"
3 changes: 0 additions & 3 deletions negotiator.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import (
"strings"
)

// Version is this package's version
const Version = "0.2.0"

const (
headerAccept = "Accept"
headerAcceptLanguage = "Accept-Language"
Expand Down
3 changes: 1 addition & 2 deletions parser_accept_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package negotiator

import (
"testing"

"net/http"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
Expand Down
3 changes: 1 addition & 2 deletions parser_charset_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package negotiator

import (
"testing"

"net/http"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
Expand Down
3 changes: 1 addition & 2 deletions parser_encoding_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package negotiator

import (
"testing"

"net/http"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
Expand Down
3 changes: 1 addition & 2 deletions parser_language_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package negotiator

import (
"testing"

"net/http"
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
Expand Down

0 comments on commit dba3794

Please sign in to comment.