update integration runner to output logs on failure

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-01-08 22:22:26 -05:00
1 parent af67b90e96
commit dffd585a05
4 files changed
+36 -17

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
case $1 in
mac)
find ~/Library/Logs/Lens -type file -name *.log -delete
;;
linux)
find ~/.config/Lens -type file -name *.log -delete
;;
win)
find %APPDATA%/Lens -type file -name *.log -delete
;;
esac
yarn build:$1
DEBUG=true yarn integration-runner
if [ $? -ne 0 ]; then
case $1 in
mac)
find ~/Library/Logs/Lens -type file -name *.log -exec cat {} \;
;;
linux)
find ~/.config/Lens -type file -name *.log -exec cat {} \;
;;
win)
find %APPDATA%/Lens -type file -name *.log -exec cat {} \;
;;
esac
fi