blob: 6c74a2512441dc9216fc6382a5da95be05b058a9 [file] [log] [blame]
#!/bin/bash
set -ex
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
cd $WPT_ROOT
if [[ $(./wpt test-jobs --includes tools_unittest; echo $?) -eq 0 ]]; then
pip install -U tox codecov
cd tools
tox
cd $WPT_ROOT
else
echo "Skipping tools unittest"
fi
if [[ $(./wpt test-jobs --includes wptrunner_unittest; echo $?) -eq 0 ]]; then
if [ $TOXENV == "py27" ] || [ $TOXENV == "pypy" ]; then
cd tools/wptrunner
tox
fi
else
echo "Skipping wptrunner unittest"
fi