Commit 90723bb5 by David Baumgold

Reset the jenkins ruby environment before tests run

parent 0b8cc25b
...@@ -51,6 +51,13 @@ mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSibli ...@@ -51,6 +51,13 @@ mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSibli
# not already be fetched. # not already be fetched.
git fetch origin master:refs/remotes/origin/master git fetch origin master:refs/remotes/origin/master
# Reset the jenkins worker's ruby environment back to
# the state it was in when the instance was spun up.
if [ -e $HOME/edx-rbenv_clean.tar.gz ]; then
rm -rf $HOME/.rbenv
tar -C $HOME -xf $HOME/edx-rbenv_clean.tar.gz
fi
# Bootstrap Ruby requirements so we can run the tests # Bootstrap Ruby requirements so we can run the tests
bundle install bundle install
......
...@@ -59,6 +59,13 @@ mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSibli ...@@ -59,6 +59,13 @@ mongo --quiet --eval 'db.getMongo().getDBNames().forEach(function(i){db.getSibli
# not already be fetched. # not already be fetched.
git fetch origin master:refs/remotes/origin/master git fetch origin master:refs/remotes/origin/master
# Reset the jenkins worker's ruby environment back to
# the state it was in when the instance was spun up.
if [ -e $HOME/edx-rbenv_clean.tar.gz ]; then
rm -rf $HOME/.rbenv
tar -C $HOME -xf $HOME/edx-rbenv_clean.tar.gz
fi
# Bootstrap Ruby requirements so we can run the tests # Bootstrap Ruby requirements so we can run the tests
bundle install bundle install
......
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