From d67c7612a660149ec86fe2b421701a95ca0eb0b8 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Thu, 2 Jun 2016 23:20:40 +0700 Subject: [PATCH] run Travis tests on 64 bit (amd64) and 32 bit (386) --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.travis.yml b/.travis.yml index ce30fdaa..6763b8fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,16 @@ language: go go: - 1.6 - 1.7beta1 + +# first part of the GOARCH workaround +# setting the GOARCH directly doesn't work, since the value will be overwritten later +# so set it to a temporary environment variable first +env: + - TRAVIS_GOARCH=amd64 + - TRAVIS_GOARCH=386 + +# second part of the GOARCH workaround +# now actually set the GOARCH env variable to the value of the temporary variable set earlier +before_install: + - export GOARCH=$TRAVIS_GOARCH + - go env # for debugging