mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-18 08:41:49 +03:00
a80fa08698
This moves default Firefox and WebKit checkouts to $HOME folder, unless browser specific env variables are specified. In other words: - Firefox checkouts goes to `$HOME/firefox` unless there's a `$FF_CHECKOUT_PATH` that specifies a custom location. - WebKit checkout goes to `$HOME/webkit` unless there's a `$WK_CHECKOUT_PATH` that specifies a custom location. With this change, all build bots will now re-use checkouts between builds, which should speed up compilation.
18 lines
319 B
Bash
Executable File
18 lines
319 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set +x
|
|
|
|
trap "cd $(pwd -P)" EXIT
|
|
if [[ ! -z "${FF_CHECKOUT_PATH}" ]]; then
|
|
cd "${FF_CHECKOUT_PATH}"
|
|
echo "WARNING: checkout path from FF_CHECKOUT_PATH env: ${FF_CHECKOUT_PATH}"
|
|
else
|
|
cd "$HOME/firefox"
|
|
fi
|
|
|
|
OBJ_FOLDER="obj-build-playwright"
|
|
if [[ -d $OBJ_FOLDER ]]; then
|
|
rm -rf $OBJ_FOLDER
|
|
fi
|
|
|