summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-02-15 14:19:18 +0100
committerMatthias Beyer <mail@beyermatthias.de>2016-02-15 14:19:18 +0100
commitbaac5464a66dbd1755db2e9ab173180c23f9d0ef (patch)
tree51ae6c977053c320bd4cdbb83965396d971a9a6a /.travis.yml
parent0cab0f114d767648730ce15feb3a025ea67c3177 (diff)
Rewrite travis.yml to build all the things
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml25
1 files changed, 9 insertions, 16 deletions
diff --git a/.travis.yml b/.travis.yml
index 5722fe1b..d8b05f08 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -27,12 +27,6 @@ before_script:
script:
- |
- changes_in() {
- [[ $(git diff --name-only $(git merge-base master $TRAVIS_COMMIT)..$TRAVIS_COMMIT | \
- cut -d "/" -f 1 | \
- grep "$n") ]] > /dev/null
- }
-
travis_cargo_run_in() {
echo ":: Trying to run cargo in $1"
[[ -d "$1" ]] &&
@@ -47,26 +41,25 @@ script:
}
run_sh_test() {
- echo "-- Running test script: $1"
- bash $1 || { echo "-- Test failed. Exiting"; exit 1; }
- echo "-- Test script $1 executed successfully"
+ echo "--- Running test script: $1"
+ bash $1 || { echo "--- Test failed. Exiting"; exit 1; }
+ echo "--- Test script $1 executed successfully"
}
- [[ $(changes_in "doc") ]] && echo "Changes in ./doc are not build by CI"
+ echo "<< Changes in ./doc are not build by CI >>"
for d in $(find -name "Cargo.toml" | grep -vE "^./Cargo.toml$"); do
echo ":: Working on $d"
dir=$(dirname $d)
{ \
- changes_in $dir && \
- echo -e "\nRunning in $d\n" && \
- travis_cargo_run_in $dir && \
- tree -I "*doc*" $dir && \
- echo "-- Running test scripts..." && \
+ echo -e "\n--- Running in $d ---\n" && \
+ travis_cargo_run_in $dir && \
+ tree -I "*doc*" $dir && \
+ echo "--- Running test scripts ---" && \
for testsh in $(find $dir -iname "*test.sh"); do
run_sh_test $testsh
done && \
- echo "-- Done with test scripts..."
+ echo -e "--- Done with test scripts ---\n\n"
} || true
done