Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
devops: fix running docker when executed from cronjob (#3822)
Andrey Lushnikov29b809887edf
diff --git a/browser_patches/ffmpeg/build.sh b/browser_patches/ffmpeg/build.shindex 1e3699075f..ab5465ade8 100755--- a/browser_patches/ffmpeg/build.sh+++ b/browser_patches/ffmpeg/build.sh@@ -45,11 +45,18 @@ elif [[ "$1" == --cross-compile-win* ]]; thenexit 1fi+ dockerflags="";+ # Use |-it| to run docker to support Ctrl-C if we run the script inside interactive terminal.+ # Otherwise (e.g. cronjob) - do nothing.+ if [[ -t 0 ]]; then+ dockerflags="-it"+ fi+if [[ "$1" == "--cross-compile-win32" ]]; then- time docker run --init --rm -v"${PWD}":/host -it ubuntu:18.04 bash /host/crosscompile-from-linux-to-win.sh --win32 /host/output/ffmpeg-win32.exe+ time docker run --init --rm -v"${PWD}":/host ${dockerflags} ubuntu:18.04 bash /host/crosscompile-from-linux-to-win.sh --win32 /host/output/ffmpeg-win32.execd output && zip ffmpeg.zip ffmpeg-win32.exeelif [[ "$1" == "--cross-compile-win64" ]]; then- time docker run --init --rm -v"${PWD}":/host -it ubuntu:18.04 bash /host/crosscompile-from-linux-to-win.sh --win64 /host/output/ffmpeg-win64.exe+ time docker run --init --rm -v"${PWD}":/host ${dockerflags} ubuntu:18.04 bash /host/crosscompile-from-linux-to-win.sh --win64 /host/output/ffmpeg-win64.execd output && zip ffmpeg.zip ffmpeg-win64.exeelseecho "ERROR: unsupported platform - $1"