Auto merge of #100 - matthiasbeyer:travis-test-subcrates, r=matthiasbeyer

travis: Run cargo chain for all cargo files

Test sub-crates if there are changes in them, as pointed out by @TheNeikos in #99, this wasn't happening before.
This commit is contained in:
Homu 2016-01-18 08:35:46 -08:00
commit a8bc18d39a

View file

@ -44,6 +44,15 @@ script:
}
[[ $(changes_in "doc") ]] && echo "Changes in ./doc are not build by CI"
for d in $(find -name "Cargo.toml" | grep -vE "^.$"); do
dir=$(dirname $d)
changes_in $dir && \
echo -e "\nRunning in $d\n" && \
travis_cargo_run_in $dir
done
echo -e "\nRunning on top-level crate...\n"
travis_cargo_run_in "."
addons: