Test cross-compiling within travis

Tests cross compiling by building on 1.6 of Go for Windows / Linux /
macOS
This commit is contained in:
Charlie Drage 2017-11-30 16:14:22 -05:00
parent 94fb8b4d2d
commit 28809d944b

View File

@ -10,8 +10,11 @@ go_import_path: github.com/kubernetes/kompose
matrix:
include:
- go: 1.6
env:
# Only build docs once
env: BUILD_DOCS=yes
- BUILD_DOCS=yes
# Test cross-compile as well
- CROSS_COMPILE=yes
- go: 1.7
- go: 1.8
@ -22,6 +25,8 @@ install:
script:
- make test
# Only cross-compile once
- if [ "$CROSS_COMPILE" == "yes" ]; then make cross; fi
after_success:
# gover collects all .coverprofile files and saves it to one file gover.coverprofile