Automatic update from web-platform-testsRun script directly and don't source it -- Fix paths when building CSS testsuite -- Recommend `git submodule` instead of hg for w3ctestlib/apiclient -- Fix passing arguments to ./build-css-testsuites.sh -- Update w3ctestlib submodule -- Update CSS build system requirements -- Make it possible to set RUN_JOB globally wpt-commits: e00868e2cc32b51bcc597400ef4ec1ca0fd5e4a7, 009fd7558acd69310568df2adf4292b9f10914af, 5241f45421bb3455b6b3bc362fa63293eb58ce48, fc544d570321a72c7418d45031db456db37c98be, 6b044b942db61b0f91454f254b1b1847c2d36e29, 11da4202dd2541e2dc2d36a4a3b2e265b4fcc6cc, 1305210bed8f4e3ef811998b219f220511d9a27d wpt-pr: 9602 wpt-commits: e00868e2cc32b51bcc597400ef4ec1ca0fd5e4a7, 009fd7558acd69310568df2adf4292b9f10914af, 5241f45421bb3455b6b3bc362fa63293eb58ce48, fc544d570321a72c7418d45031db456db37c98be, 6b044b942db61b0f91454f254b1b1847c2d36e29, 11da4202dd2541e2dc2d36a4a3b2e265b4fcc6cc, 1305210bed8f4e3ef811998b219f220511d9a27d wpt-pr: 9602
55 lines
1.2 KiB
Bash
Executable File
55 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env sh
|
|
set -ex
|
|
|
|
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
|
|
WPT_ROOT=$(readlink -f $SCRIPT_DIR/..)
|
|
cd $WPT_ROOT
|
|
|
|
main() {
|
|
cd $WPT_ROOT/css
|
|
|
|
if [ -z $VENV ]; then
|
|
VENV=tools/_virtualenv
|
|
fi
|
|
|
|
# Create the virtualenv
|
|
if [ ! -d $VENV ]; then
|
|
if [ -z $PYTHON ]; then
|
|
command -v python
|
|
if [ $? -eq 0 ]; then
|
|
if [ `python -c 'import sys; print(sys.version[0:3])'` == "2.7" ]; then
|
|
PYTHON=python
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
if [ -z $PYTHON ]; then
|
|
command -v python2
|
|
if [ $? -eq 0 ]; then
|
|
PYTHON=python2
|
|
fi
|
|
fi
|
|
|
|
if [ -z $PYTHON ]; then
|
|
echo "Please ensure Python 2.7 is installed"
|
|
exit 1
|
|
fi
|
|
|
|
virtualenv -p $PYTHON $VENV || { echo "Please ensure virtualenv is installed"; exit 2; }
|
|
fi
|
|
|
|
# Install dependencies
|
|
$VENV/bin/pip install -r requirements.txt
|
|
|
|
# Error if submodules are not there
|
|
if [ ! -d tools/apiclient -o ! -d tools/w3ctestlib ]; then
|
|
echo 'Please run `git submodule update --init --recursive`'
|
|
exit 1
|
|
fi
|
|
|
|
# Run the build script
|
|
$VENV/bin/python tools/build.py "$@"
|
|
}
|
|
|
|
main "$@"
|