Enable s390x build

This commit is contained in:
Alexander Kanevskiy 2017-03-22 22:55:33 +02:00
parent 0799f5732f
commit 61f3b4b315
2 changed files with 21 additions and 15 deletions

View File

@ -9,26 +9,32 @@ go:
env: env:
global: global:
- TOOLS_CMD=golang.org/x/tools/cmd - TOOLS_CMD=golang.org/x/tools/cmd
- PATH=$GOROOT/bin:$PATH - PATH=$GOROOT/bin:$PATH
- GO15VENDOREXPERIMENT=1 - GO15VENDOREXPERIMENT=1
matrix: matrix:
- TARGET=amd64 - TARGET=amd64
- TARGET=arm - TARGET=arm
- TARGET=arm64 - TARGET=arm64
- TARGET=ppc64le - TARGET=ppc64le
- TARGET=s390x
matrix: matrix:
fast_finish: true fast_finish: true
allow_failures: allow_failures:
- go: tip - go: tip
exclude: exclude:
- go: tip - go: tip
env: arm env: TARGET=arm
- go: tip - go: tip
env: arm64 env: TARGET=arm64
- go: tip - go: tip
env: ppc64le env: TARGET=ppc64le
- go: tip
env: TARGET=s390x
- go: 1.6.x
env: TARGET=s390x
install: install:
- go get ${TOOLS_CMD}/cover - go get ${TOOLS_CMD}/cover

View File

@ -27,7 +27,7 @@ sudo -E rkt run \
--exec /bin/bash \ --exec /bin/bash \
-- -xe -c "\ -- -xe -c "\
${FEDORA_INSTALL}; cd /opt/src; umask 0022; ${FEDORA_INSTALL}; cd /opt/src; umask 0022;
for arch in amd64 arm arm64 ppc64le; do \ for arch in amd64 arm arm64 ppc64le s390x; do \
CGO_ENABLED=0 GOARCH=\$arch ./build ${BUILDFLAGS}; \ CGO_ENABLED=0 GOARCH=\$arch ./build ${BUILDFLAGS}; \
for format in txz tbz2 tgz; do \ for format in txz tbz2 tgz; do \
FILENAME=cni-\$arch-${TAG}.\$format; \ FILENAME=cni-\$arch-${TAG}.\$format; \