summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-12-05 15:45:01 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-12-05 16:57:15 +0900
commit631a8c10dc79daa1fb932adb500778a4b2550122 (patch)
tree81a4375bffc1004ca4fe1d266754c15e3a97a96e
parent3ade7e8978b9aca123e61dd7406ec30450bda5b9 (diff)
travis: Use "before_script" for "go env" settings
When testing cross-compile on Travis-CI, the "GOOS" env is overwritten later unexpectedly. This patch fixes to use "before_script" to enable "go env" settings. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
-rw-r--r--.travis.yml18
1 files changed, 15 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index e885b517..6b82e76a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -57,15 +57,27 @@ matrix:
#
# Cross-compile
#
+# Note: We use "before_script" to enable "go env" settings. The following keeps
+# "env" sections as just markers of Travis-CI Web UI.
+# See https://github.com/travis-ci/travis-ci/issues/6126
- <<: *_build
env:
- - GOOS=windows
+ - GOOS="windows"
+ before_script:
+ - export GOOS="windows"
+ - go env
- <<: *_build
env:
- - GOOS=freebsd
+ - GOOS="freebsd"
+ before_script:
+ - export GOOS="freebsd"
+ - go env
- <<: *_build
env:
- - GOOS=darwin
+ - GOOS="darwin"
+ before_script:
+ - export GOOS="darwin"
+ - go env
#
# Misc
#