travis: Test go1.13 and drop go1.11.

This commit is contained in:
Dave Collins 2019-09-03 14:46:42 -05:00
parent fefb993956
commit 38203c8f4d
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2
2 changed files with 8 additions and 10 deletions

View File

@ -5,25 +5,25 @@ env:
matrix:
include:
- os: linux
go: 1.12.x
go: 1.13.x
cache:
directories:
- $HOME/.cache/go-build
- $HOME/go/pkg/mod
- os: linux
go: 1.11.x
cache:
directories:
- $HOME/.cache/go-build
- $HOME/go/pkg/mod
- os: osx
go: 1.12.x
cache:
directories:
- $HOME/.cache/go-build
- $HOME/go/pkg/mod
- os: osx
go: 1.11.x
go: 1.13.x
cache:
directories:
- $HOME/.cache/go-build
- $HOME/go/pkg/mod
- os: osx
go: 1.12.x
cache:
directories:
- $HOME/Library/Caches/go-build

View File

@ -5,7 +5,6 @@
package main
import (
"flag"
"os"
"strings"
"testing"
@ -76,6 +75,5 @@ func TestAltDNSNamesWithArg(t *testing.T) {
// init parses the -test.* flags from the command line arguments list and then
// removes them to allow go-flags tests to succeed.
func init() {
flag.Parse()
os.Args = os.Args[:1]
}