From 9d842b4b03e896d29110897a8f5deceb6547b563 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 20 May 2017 23:29:06 -0700 Subject: [PATCH] Okay, I think I finally get what's happening to me. Let's try this. --- .travis.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4d14a09..c23c7d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,13 +12,19 @@ install: - go get github.com/golang/lint/golint script: -- env + +# It seems Travis, in an attempt to be helpful, nukes GOARCH=x if we +# pass it as such in the build matrix. So, because we really actually +# want the arch to change, we have to do this layer of +# indirection. Blargh. - export GOARCH=$MY_GOARCH -- env - glide install -- go test $(glide novendor) -- go vet $(glide novendor) -- glide novendor | xargs -n1 golint +# Try to build on all architectures. +- go install ./cmd/pixiecore +# Only do testing and things that requires stuff to be executable on amd64. +- "if [ \"$GOARCH\" = \"amd64\" ]; then go test $(glide novendor); end" +- "if [ \"$GOARCH\" = \"amd64\" ]; then go vet $(glide novendor); end" +- "if [ \"$GOARCH\" = \"amd64\" ]; then glide novendor | xargs -n1 golint; end" env: matrix: