From c702e0a9aa3305b96f7c6c9c2846ff2320fd354a Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Sun, 19 Aug 2018 02:07:48 +0200 Subject: [PATCH] Added OSX environment to travis builds --- .travis.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5c29618..e825252 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,18 @@ language: go +os: + - linux + - osx + go: - 1.7.x - 1.8.x + - 1.9.x + - 1.10.x + # from go 1.8.7, 1.9.4, 1.10rc2 there is a restriction on CGO see https://github.com/bugst/go-serial/issues/50 + # this restriction has some consequences on darwin build + - 1.8.6 + - 1.9.3 go_import_path: go.bug.st/serial.v1 @@ -20,6 +30,37 @@ env: - TEST_OS=openbsd TEST_ARCH=arm matrix: + exclude: + - os: linux # no point in testing go1.8.6 on Linux + go: 1.8.6 + - os: linux # no point in testing go1.9.3 on Linux + go: 1.9.3 + - os: osx # go1.8.x after 1.8.6 is not supported on OSX + go: 1.8.x + - os: osx # go1.9.x after 1.9.3 is not supported on OSX + go: 1.9.x + - os: linux + env: TEST_OS=darwin TEST_ARCH=386 + - os: linux + env: TEST_OS=darwin TEST_ARCH=amd64 + - os: osx + env: TEST_OS=linux TEST_ARCH=386 + - os: osx + env: TEST_OS=linux TEST_ARCH=amd64 + - os: osx + env: TEST_OS=linux TEST_ARCH=arm + - os: osx + env: TEST_OS=windows TEST_ARCH=386 + - os: osx + env: TEST_OS=windows TEST_ARCH=amd64 + - os: osx + env: TEST_OS=freebsd TEST_ARCH=amd64 + - os: osx + env: TEST_OS=openbsd TEST_ARCH=amd64 + - os: osx + env: TEST_OS=openbsd TEST_ARCH=386 + - os: osx + env: TEST_OS=openbsd TEST_ARCH=arm allow_failures: - env: TEST_OS=openbsd TEST_ARCH=arm