mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-26 03:35:17 +00:00
Dump interactive logs on travis test failure
As far as I know we can't access the build artifacts from Travis, so we can't check the interactive logs after a test failure. Add an environment variable that causes the test runner to dump the logs itself, and set that variable for Travis.
This commit is contained in:
parent
7229d7a326
commit
510ff6a689
2 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,7 @@ script:
|
||||||
- ./configure
|
- ./configure
|
||||||
- make
|
- make
|
||||||
- sudo make install
|
- sudo make install
|
||||||
- make test
|
- make test SHOW_INTERACTIVE_LOG=1
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
channels:
|
channels:
|
||||||
|
|
|
@ -42,6 +42,12 @@ for i in *.expect
|
||||||
# clean up tmp files
|
# clean up tmp files
|
||||||
rm -f $i.tmp.{err,out,log}
|
rm -f $i.tmp.{err,out,log}
|
||||||
else
|
else
|
||||||
|
if set -qgx SHOW_INTERACTIVE_LOG
|
||||||
|
# dump the interactive log
|
||||||
|
# primarily for use in travis where we can't check it manually
|
||||||
|
echo "Log for file $i:"
|
||||||
|
cat $i.tmp.log
|
||||||
|
end
|
||||||
echo "File $i failed tests"
|
echo "File $i failed tests"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue