Minify travis script by using Makefile

This commit is contained in:
Matthias Beyer 2016-09-19 22:13:23 +02:00
parent fb2300a799
commit e24619a08f
1 changed files with 2 additions and 11 deletions

View File

@ -21,18 +21,9 @@ before_script:
script: script:
- | - |
if [[ "$TEST_SUITE" == "binaries" ]]; then if [[ "$TEST_SUITE" == "binaries" ]]; then
make $(find . -maxdepth 1 -name "imag-*" -type d -printf "%f ") && \ make bin-test
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
else # $TEST_SUITE == "libraries" else # $TEST_SUITE == "libraries"
make $(find . -maxdepth 1 -name "libimag*" -printf "%f-test ") make lib-test
fi fi
addons: addons: