The Jenkins job pywikibot-tests-beta-cluster setup pywikibot and runs a test suite against the beta cluster. All the logic should be moved from the job to a testenv in pywikibot/core.
export PYWIKIBOT2_DIR=$WORKSPACE export TOX_TESTENV_PASSENV=PY_COLORS export PY_COLORS=1 tox -e venv -- pip install --upgrade ndg-httpsclient tox -e venv -- python -m generate_family_file 'http://en.wikipedia.beta.wmflabs.org/' 'wpbeta' 'y' tox -e venv -- python -m generate_user_files -dir:$WORKSPACE -family:wpbeta -lang:en -v echo "console_encoding='utf8'" >> $WORKSPACE/user-config.py tox -e venv -- pip install -rdev-requirements.txt tox -e venv -- python setup.py nosetests --tests tests --verbosity=2 -a '"family=wpbeta,code=en"'