diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-05-08 18:56:32 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-05-08 19:04:30 -0700 |
commit | 1baa04dbd4c77d18b906fd185c762f613b36baa0 (patch) | |
tree | ca9dd89880ee34a0828fe22b8ed79532179035f9 | |
parent | 0c9dacf306cecb1734b9e1704f4f6e4b3821ff01 (diff) | |
download | mu-1baa04dbd4c77d18b906fd185c762f613b36baa0.tar.gz |
2941 - split Travis CI into multiple jobs
It easily exceeded the 50-minute timeout.
-rw-r--r-- | .travis.yml | 5 | ||||
-rwxr-xr-x | test_all_layers | 17 | ||||
-rwxr-xr-x | test_layers | 32 |
3 files changed, 36 insertions, 18 deletions
diff --git a/.travis.yml b/.travis.yml index 3ffbc7ea..0099efbc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,10 @@ before_install: - CXX=clang++ script: - - ./test_all_layers + - ./test_layers 000 070 + - ./test_layers 070 999 + - ./test_layers chessboard + - ./test_layers edit notifications: email: diff --git a/test_all_layers b/test_all_layers deleted file mode 100755 index f7551aea..00000000 --- a/test_all_layers +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -for f in [0-9]* -do - if [ "$f" \< "$1" ]; then continue; fi - echo "=== $f" - ./build_and_test_until $f || exit 1 -done - -echo "=== chessboard" -./mu test chessboard.mu || exit 1 - -for f in edit/[0-9]* -do - echo "=== edit: until $f" - ./mu test `echo edit/[0-9]* |perl -pwe "s,$f.*,$f,"` || exit 1 -done diff --git a/test_layers b/test_layers new file mode 100755 index 00000000..b5160e03 --- /dev/null +++ b/test_layers @@ -0,0 +1,32 @@ +#!/bin/sh +# Test all layers: +# test_layers +# Test layers after x: +# test_layers x +# Test layers after x and until y (inclusive): +# test_layers x y +# Test all layers for a specific app: +# test_layers app + +for f in [0-9]* +do + if [ "$f" \< "$1" ]; then continue; fi + if expr "$2" \& "$f" \> "$2" >/dev/null; then exit; fi + echo "=== $f" + ./build_and_test_until $f || exit 1 +done + +if expr "$1" \& "$1" '==' "chessboard" >/dev/null +then + echo "=== chessboard" + ./mu test chessboard.mu || exit 1 +fi + +if expr "$1" \& "$1" '==' "edit" >/dev/null +then + for f in edit/[0-9]* + do + echo "=== edit: until $f" + ./mu test `echo edit/[0-9]* |perl -pwe "s,$f.*,$f,"` || exit 1 + done +fi |