ci: fix test-prev-commits: checkout -; no coverage; improve msg

- checkout previous commit, so the coverage upload uses the current
   code
 - do not run coverage reports when testing previous commits
 - improve failure message: display subject/author/name for each commit
This commit is contained in:
Daniel Hahler 2016-12-28 02:34:20 +01:00
parent 061c434a90
commit 06eeef47d8
1 changed files with 7 additions and 2 deletions

View File

@ -201,13 +201,18 @@ script:
echo "Testing commit $commit" echo "Testing commit $commit"
git checkout "$commit" git checkout "$commit"
git --no-pager show --stat git --no-pager show --stat
if ! make all check; then if ! DO_COVERAGE=0 make all check; then
failed="$failed $commit" failed="$failed $commit"
fi fi
travis_fold_end travis_fold_end
done done
git checkout -qf FETCH_HEAD
if [ -n "$failed" ]; then if [ -n "$failed" ]; then
echo "Checks failed for these commits:$failed" echo "Checks failed for these commits:"
for c in $commits; do
git log -1 --pretty="%h %s (%an, %ad)" "$c"
done
false false
fi fi
fi fi