From 63d343e1f92e0d5803b2b63d50712be6214daf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Andr=C3=A9s=20Virviescas=20Santana?= Date: Sat, 17 Oct 2020 11:12:25 +0200 Subject: [PATCH] Update CI to use latest versions of Go (#21) Co-authored-by: Sergio Andres Virviescas Santana --- .travis.yml | 32 +++++++++++++++++++++++--------- go.mod | 2 ++ 2 files changed, 25 insertions(+), 9 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 + - go test -v -cover -race ./... - # run tests on a standard platform - - go test -v ./... +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