Minify travis script by using Makefile
This commit is contained in:
parent
fb2300a799
commit
e24619a08f
1 changed files with 2 additions and 11 deletions
13
.travis.yml
13
.travis.yml
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue