Commit 0c47d3b5 by Will Daly

Merge pull request #557 from edx/will/get-selenium-tests-working

Jenkins script
parents c56853ae 03ddfbd1
......@@ -5,7 +5,6 @@ ddt==0.8.0
django-nose==1.2
mock==1.0.1
moto==0.2.22
nose==1.3.0
coverage==3.7.1
pep8==1.4.6
pylint<1.0
......
##############################################################################
#
# Run the acceptance tests in Jenkins
#
# This assumes that:
# * Jenkins has Python and virtualenv installed
# * Jenkins has the SauceConnect plugin installed.
# * The Jenkins job provides the environment variables
# - BASIC_AUTH_USER: The basic auth username for the sandbox.
# - BASIC_AUTH_PASSWORD: The basic auth password for the sandbox.
# - TEST_HOST: The hostname of the sandbox (e.g. test.example.com)
#
##############################################################################
set -x
if [ -z "$BASIC_AUTH_USER" ]; then
echo "Need to set BASIC_AUTH_USER env variable"
exit 1;
fi
if [ -z "$BASIC_AUTH_PASSWORD" ]; then
echo "Need to set BASIC_AUTH_PASSWORD env variable"
exit 1;
fi
if [ -z "$TEST_HOST" ]; then
echo "Need to set TEST_HOST env variable"
exit 1;
fi
export BASE_URL="https://${BASIC_AUTH_USER}:${BASIC_AUTH_PASSWORD}@${TEST_HOST}"
virtualenv venv
source venv/bin/activate
pip install -r requirements/test-acceptance.txt
cd test/acceptance
python tests.py
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment