summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-09-19 22:13:23 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-09-19 22:13:23 +0200
commite24619a08f192543a02e6003ef144e5443e8a156 (patch)
treed1850a0400879876952052b202c1e228baeaa9c1 /.travis.yml
parentfb2300a799884db32979cad7cdf6785e172d95d8 (diff)
Minify travis script by using Makefile
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml13
1 files changed, 2 insertions, 11 deletions
diff --git a/.travis.yml b/.travis.yml
index 6145fdd2..7853d17f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,18 +21,9 @@ before_script:
script:
- |
if [[ "$TEST_SUITE" == "binaries" ]]; then
- make $(find . -maxdepth 1 -name "imag-*" -type d -printf "%f ") && \
- for d in $(find -name "Cargo.toml" | grep -vE "^./Cargo.toml$"); do
- dir=$(dirname $d)
- echo "--- Running test scripts ---"
- for testsh in $(find $dir -iname "*test.sh"); do
- echo "--- Running test script: '$testsh'"
- bash $testsh || { echo "--- Test failed. Exiting"; exit 1; }
- echo "--- Test script $testsh executed successfully"
- done
- done
+ make bin-test
else # $TEST_SUITE == "libraries"
- make $(find . -maxdepth 1 -name "libimag*" -printf "%f-test ")
+ make lib-test
fi
addons: