Browse Source

travis: try with matrix here, too

Waldemar Brodkorb 7 years ago
parent
commit
0c89b0a594
2 changed files with 9 additions and 12 deletions
  1. 5 2
      .travis.yml
  2. 4 10
      scripts/travis.sh

+ 5 - 2
.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

+ 4 - 10
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