-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all setup after clone to tools/ci/tc_run.py
- Loading branch information
Showing
8 changed files
with
427 additions
and
328 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1 @@ | ||
# This script is designed to be sourced from tools/docker/start.sh | ||
|
||
# Start userspace OOM killer: https://github.com/rfjakob/earlyoom | ||
# It will report memory usage every minute and prefer to kill browsers. | ||
sudo earlyoom -p -r 60 --prefer '(chrome|firefox)' --avoid 'python' & | ||
|
||
sudo sh -c './wpt make-hosts-file >> /etc/hosts' | ||
|
||
if [[ $BROWSER == "chrome" ]] || [[ "$BROWSER" == all ]] | ||
then | ||
# Install Chrome dev | ||
if [[ "$CHANNEL" == "dev" ]] || [[ "$CHANNEL" == "nightly" ]] | ||
then | ||
deb_archive=google-chrome-unstable_current_amd64.deb | ||
elif [[ "$CHANNEL" == "beta" ]] | ||
then | ||
deb_archive=google-chrome-beta_current_amd64.deb | ||
elif [[ "$CHANNEL" == "stable" ]] | ||
then | ||
deb_archive=google-chrome-stable_current_amd64.deb | ||
else | ||
echo Unrecognized release channel: $CHANNEL >&2 | ||
exit 1 | ||
fi | ||
wget -O /tmp/$deb_archive https://dl.google.com/linux/direct/$deb_archive | ||
|
||
sudo apt-get -qqy update && sudo gdebi -n /tmp/$deb_archive | ||
fi | ||
|
||
sudo Xvfb $DISPLAY -screen 0 ${SCREEN_WIDTH}x${SCREEN_HEIGHT}x${SCREEN_DEPTH} & | ||
sudo fluxbox -display $DISPLAY & | ||
# Contents of this script superceeded by tools/ci/run_tc.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters