1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/scripts/integration.sh
Sebastian Malton ace7a854fa fix not also failing if tests failed
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-01-11 08:18:49 -05:00

31 lines
574 B
Bash
Executable File

case $1 in
mac)
find ~/Library/Logs/Lens -type f -name *.log -delete
;;
linux)
find ~/.config/Lens -type f -name *.log -delete
;;
win)
find %APPDATA%/Lens -type f -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 f -name *.log -exec cat >&2 {} \;
;;
linux)
find ~/.config/Lens -type f -name *.log -exec cat >&2 {} \;
;;
win)
find %APPDATA%/Lens -type f -name *.log -exec cat >&2 {} \;
;;
esac
exit 1
fi