forked from LaconicNetwork/kompose
Test cross-compiling within travis
Tests cross compiling by building on 1.6 of Go for Windows / Linux / macOS
This commit is contained in:
parent
94fb8b4d2d
commit
28809d944b
@ -10,8 +10,11 @@ go_import_path: github.com/kubernetes/kompose
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- go: 1.6
|
- go: 1.6
|
||||||
|
env:
|
||||||
# Only build docs once
|
# Only build docs once
|
||||||
env: BUILD_DOCS=yes
|
- BUILD_DOCS=yes
|
||||||
|
# Test cross-compile as well
|
||||||
|
- CROSS_COMPILE=yes
|
||||||
- go: 1.7
|
- go: 1.7
|
||||||
- go: 1.8
|
- go: 1.8
|
||||||
|
|
||||||
@ -22,6 +25,8 @@ install:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
|
# Only cross-compile once
|
||||||
|
- if [ "$CROSS_COMPILE" == "yes" ]; then make cross; fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
# gover collects all .coverprofile files and saves it to one file gover.coverprofile
|
# gover collects all .coverprofile files and saves it to one file gover.coverprofile
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user