Merge pull request #3498 from edx/zoldak/jenkins-reset-venv

Reset the jenkins python virtualenv before test runs.
This commit is contained in:
Jay Zoldak
2014-04-30 13:12:03 -04:00
2 changed files with 14 additions and 0 deletions

View File

@@ -54,6 +54,13 @@ git fetch origin master:refs/remotes/origin/master
# Bootstrap Ruby requirements so we can run the tests
bundle install
# Reset the jenkins worker's virtualenv back to the
# state it was in when the instance was spun up.
if [ -e $HOME/edx-venv_clean.tar.gz ]; then
rm -rf $HOME/edx-venv
tar -C $HOME -xf $HOME/edx-venv_clean.tar.gz
fi
# Activate the Python virtualenv
source $HOME/edx-venv/bin/activate

View File

@@ -62,6 +62,13 @@ git fetch origin master:refs/remotes/origin/master
# Bootstrap Ruby requirements so we can run the tests
bundle install
# Reset the jenkins worker's virtualenv back to the
# state it was in when the instance was spun up.
if [ -e $HOME/edx-venv_clean.tar.gz ]; then
rm -rf $HOME/edx-venv
tar -C $HOME -xf $HOME/edx-venv_clean.tar.gz
fi
# Activate the Python virtualenv
source $HOME/edx-venv/bin/activate