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 df47d1713c
Fix auto-update to use Lens notifications, and add update confirmation (#1831)
- Add auto-update and pre-release update user settings

- Add settings in user preferences for auto-updating (default false) and
  for allowing pre-release versions (default false)

- Use in-Lens notifications instead of OS notifications as those were
  found to be flaky

- Add rudimentary main->renderer notification system.

- Remove options, always confirm, never auto prelease

- Changed "yes later" to "yes on quit"

- move register IpcHandlers

- use moment instead of dateformat

- moved formatting notification buttons to renderer

- move to RenderButtons as function component

- explicitly only send notifications to main view

- move delay to utils, always retry even if check failed

- fix notification rendering and disabled the auto-updater for integration tests

- update integration runner to output logs on failure

- pin minikube version

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-01-11 09:08:47 -05:00

31 lines
594 B
Bash
Executable File

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