Skip to content

Commit

Permalink
Run travis tests using govendor (#91)
Browse files Browse the repository at this point in the history
* Build and test using vendored dependencies
* Fix TestDialTLSTimeout test
* Remove go get ./...
* Add kingpin
  • Loading branch information
sideshow committed Sep 5, 2017
1 parent afdbb7c commit 0700d12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ go:
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- tip

before_install:
- go get ./...
- go get gopkg.in/alecthomas/kingpin.v2
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get github.com/stretchr/testify/assert
- go get github.com/kardianos/govendor
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi

install:
- go get golang.org/x/net/http2
- go get golang.org/x/net/context
- go get golang.org/x/crypto/pkcs12
- $HOME/gopath/bin/govendor sync

os:
- linux

script:
- go test -race -v ./...
- $HOME/gopath/bin/govendor test -race -v +local
- $HOME/gopath/bin/goveralls -service=travis-ci
2 changes: 1 addition & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestClientNameToCertificate(t *testing.T) {
}

func TestDialTLSTimeout(t *testing.T) {
apns.TLSDialTimeout = 1 * time.Millisecond
apns.TLSDialTimeout = 10 * time.Millisecond
crt, _ := certificate.FromP12File("certificate/_fixtures/certificate-valid.p12", "")
client := apns.NewClient(crt)
dialTLS := client.HTTPClient.Transport.(*http2.Transport).DialTLS
Expand Down

0 comments on commit 0700d12

Please sign in to comment.