Revision 4ed222f683a26ea90dcb5eef36cf3ea9c8ef65a0 authored by Josh Matthews on 12 September 2018, 16:20:36 UTC, committed by GitHub on 12 September 2018, 16:20:36 UTC
1 parent af3dc21
ci_stability.sh
#!/bin/bash
set -ex
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
cd $WPT_ROOT
source tools/ci/lib.sh
test_stability() {
local extra_arg=$1
./wpt check-stability $PRODUCT $extra_arg --output-bytes $((1024 * 1024 * 3)) --metadata ~/meta/ --install-fonts
}
main() {
hosts_fixup
local extra_arg=""
if [ $(echo $PRODUCT | grep '^chrome:') ]; then
local channel=$(echo $PRODUCT | grep --only-matching '\w\+$')
if [[ $channel == "dev" ]]; then
# The package name for Google Chrome Dev uses "unstable", not "dev".
channel="unstable"
fi
install_chrome $channel
extra_arg="--binary=$(which google-chrome-$channel)"
fi
test_stability $extra_arg
}
main
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...