From 7d8e4f3daa2dccf14db8e2609026b268a1419214 Mon Sep 17 00:00:00 2001 From: Sergio Andres Virviescas Santana Date: Mon, 12 Oct 2020 15:02:52 +0200 Subject: [PATCH] Update CI to use latest versions of Go --- .travis.yml | 34 ++++++++++++++++++++++++---------- go.mod | 2 ++ 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6a6ec2e..98bc26f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,29 @@ language: go +os: + - linux + - osx + - windows + go: - - 1.6 + - 1.15.x + - 1.14.x + - 1.13.x + - 1.12.x + - tip script: - # build test for supported platforms - - GOOS=linux go build - - GOOS=darwin go build - - GOOS=freebsd go build - - GOOS=windows go build - - GOARCH=386 go build - - # run tests on a standard platform - - go test -v ./... + - go test -v -cover -race ./... + +jobs: + allow_failures: + - go: tip + + include: + - stage: cross compilation + script: + - GOOS=linux go build + - GOOS=darwin go build + - GOOS=freebsd go build + - GOOS=windows go build + - GOARCH=386 go build diff --git a/go.mod b/go.mod index 0b713ec..be783c1 100644 --- a/go.mod +++ b/go.mod @@ -1 +1,3 @@ module github.com/valyala/bytebufferpool + +go 1.12