From 1baa04dbd4c77d18b906fd185c762f613b36baa0 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 8 May 2016 18:56:32 -0700 Subject: 2941 - split Travis CI into multiple jobs It easily exceeded the 50-minute timeout. --- test_layers | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 test_layers (limited to 'test_layers') 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 -- cgit 1.4.1-2-gfad0