From b9a5f5e70091ac5dee2317c4aeb2e84e3833bb0c Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Tue, 13 Nov 2018 15:26:31 -0600 Subject: [PATCH] travis: build matrix --- .travis.yml | 5 +++++ build.sh | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f14338d..9884d41 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,11 @@ before_install: #- docker run --rm --privileged multiarch/qemu-user-static:register --reset - docker login "--password=$DOCKER_PASS" "--username=$DOCKER_USER" +env: + - ARCH="" BASE="" + - ARCH="arm" BASE="arm32v7" + - ARCH="aarch64 BASE="arm64v8" + script: - ./build.sh - docker logout diff --git a/build.sh b/build.sh index cb80e3e..5c732ab 100755 --- a/build.sh +++ b/build.sh @@ -30,7 +30,9 @@ then buildAndPush debian-pre-nim fi -#buildAndPush nim-base -#buildAndPushArch arm32v7 arm -buildAndPushArch arm64v8 aarch64 +if [ "$BASE" == "" -o "$ARCH" == "" ]; then + buildAndPush nim-base +else + buildAndPushArch $BASE $ARCH +fi