From 94f8fef74403d59ef02b85984aae517577dcd78d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Mon, 20 Aug 2018 21:59:55 +0100 Subject: [PATCH] refactor(ci): use go env instead of hardcoding OS and arch information --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3813bc178..d8507c030 100644 --- a/.travis.yml +++ b/.travis.yml @@ -81,8 +81,8 @@ jobs: - git diff --exit-code # install bakelite, we can't "go get" a tag from github, so we fetch the binary - export BAKELITE_VERSION="v0.1.0" - - export BAKELITE_OS="linux" - - export BAKELITE_ARCH="amd64" + - export BAKELITE_OS=$(go env GOHOSTOS) + - export BAKELITE_ARCH="$(go env GOHOSTARCH)" - curl -L -o bakelite.tar.gz "https://github.com/terinjokes/bakelite/releases/download/${BAKELITE_VERSION}/bakelite-${BAKELITE_OS}-${BAKELITE_ARCH}.tar.gz" - tar -xf bakelite.tar.gz # and now compile using bakelite for all target archs