summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-09 20:09:30 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-09 20:09:30 +0200
commit0c89b0a5942e29cc6434e3b8929451573b393ee8 (patch)
treebc5fda7ebfef285e2d0bcc824f95a6f34997355d
parent69ccbb2c9af2ebb0e591da1e55737783c560f9f1 (diff)
travis: try with matrix here, too
-rw-r--r--.travis.yml7
-rwxr-xr-xscripts/travis.sh14
2 files changed, 9 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml
index c9e113c4b..f25163a5d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,5 +2,8 @@ git:
depth: 3
install:
- sudo apt-get -qq update
- - sudo apt-get install -y mksh
-script: ./scripts/travis.sh
+matrix:
+ include:
+ - env: ARCH=arm SYSTEM=raspberry-pi
+ - env: ARCH=mips SYSTEM=mikrotik-rb532
+script: ./scripts/travis.sh $ARCH $SYSTEM
diff --git a/scripts/travis.sh b/scripts/travis.sh
index 8a97f5bbc..47754727b 100755
--- a/scripts/travis.sh
+++ b/scripts/travis.sh
@@ -1,11 +1,5 @@
#!/bin/bash
-
-for system in $(grep "config ADK_TARGET" target/*/systems/*|awk -F: '{ print $1 }'); do
- system=$(echo $system|sed -e "s#ADK_TARGET_SYSTEM_##")
- system=$(echo $system|tr '[:upper:]' '[:lower:]')
- arch=$(echo $system|awk -F/ '{ print $2 }')
- system=$(echo $system|awk -F/ '{ print $4 }')
- make ADK_TARGET_OS=Linux ADK_TARGET_ARCH=$arch ADK_TARGET_SYSTEM=$system ADK_APPLIANCE=new defconfig
- make
- make cleansystem
-done
+arch=$1
+system=$2
+make ADK_TARGET_OS=Linux ADK_TARGET_ARCH=$arch ADK_TARGET_SYSTEM=$system ADK_APPLIANCE=new defconfig
+make