diff options
-rw-r--r-- | .travis.yml | 7 | ||||
-rwxr-xr-x | scripts/travis.sh | 14 |
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 |