diff --git a/.travis.yml b/.travis.yml index 5e8d4979d..fe694e578 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: go go: -- 1.8.x -- 1.9.x -- 1.10.x +- 1.9.7 +- 1.10.4 +- 1.11 env: global: @@ -28,7 +28,7 @@ script: - make test - make vet - make errcheck -- make fmt +- if [ "$TRAVIS_GO_VERSION" = "1.11" ]; then make fmt; fi after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/README.md b/README.md index 4fc0cc600..b99709380 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ You might also want to look at the [Frequently Asked Questions](https://github.c Sarama provides a "2 releases + 2 months" compatibility guarantee: we support the two latest stable releases of Kafka and Go, and we provide a two month grace period for older releases. This means we currently officially support -Go 1.8 through 1.10, and Kafka 0.11 through 1.1, although older releases are +Go 1.8 through 1.11, and Kafka 1.0 through 2.0, although older releases are still likely to work. Sarama follows semantic versioning and provides API stability via the gopkg.in service. diff --git a/client_tls_test.go b/client_tls_test.go index eef5f6e9c..eff84c771 100644 --- a/client_tls_test.go +++ b/client_tls_test.go @@ -33,12 +33,12 @@ func TestTLS(t *testing.T) { nva := time.Now().Add(1 * time.Hour) caTemplate := &x509.Certificate{ - Subject: pkix.Name{CommonName: "ca"}, - Issuer: pkix.Name{CommonName: "ca"}, - SerialNumber: big.NewInt(0), - NotAfter: nva, - NotBefore: nvb, - IsCA: true, + Subject: pkix.Name{CommonName: "ca"}, + Issuer: pkix.Name{CommonName: "ca"}, + SerialNumber: big.NewInt(0), + NotAfter: nva, + NotBefore: nvb, + IsCA: true, BasicConstraintsValid: true, KeyUsage: x509.KeyUsageCertSign, } diff --git a/dev.yml b/dev.yml index bc8c4e452..97eed3ad9 100644 --- a/dev.yml +++ b/dev.yml @@ -2,7 +2,7 @@ name: sarama up: - go: - version: '1.10' + version: '1.11' commands: test: