mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Update web-platform-tests to revision 1abcb7058ecdaabd5fe9c27c90a73795d31d2a0a
This commit is contained in:
parent
5bdea7dc1c
commit
c930649cd6
53 changed files with 413 additions and 851 deletions
|
@ -17,19 +17,16 @@ REVISION=${3:-FETCH_HEAD}
|
|||
BROWSER=${4:-all}
|
||||
CHANNEL=${5:-nightly}
|
||||
|
||||
# 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' &
|
||||
|
||||
cd ~
|
||||
|
||||
mkdir web-platform-tests
|
||||
cd web-platform-tests
|
||||
|
||||
git init
|
||||
git remote add origin ${REMOTE}
|
||||
|
||||
# Initially we just fetch 50 commits in order to save several minutes of fetching
|
||||
git fetch --quiet --depth=50 origin ${REF}
|
||||
git fetch --quiet --depth=50 --tags origin ${REF}
|
||||
|
||||
if [[ ! `git rev-parse --verify -q ${REVISION}` ]];
|
||||
then
|
||||
|
@ -40,27 +37,4 @@ then
|
|||
fi
|
||||
git checkout -b build ${REVISION}
|
||||
|
||||
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 https://dl.google.com/linux/direct/$deb_archive
|
||||
|
||||
sudo apt-get -qqy update && sudo gdebi -n $deb_archive
|
||||
fi
|
||||
|
||||
sudo Xvfb $DISPLAY -screen 0 ${SCREEN_WIDTH}x${SCREEN_HEIGHT}x${SCREEN_DEPTH} &
|
||||
source tools/ci/start.sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue