Merge pull request #3498 from edx/zoldak/jenkins-reset-venv
Reset the jenkins python virtualenv before test runs.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user