Commit 1b67aebb by Ben Patterson

Run bundle clean after bundle install

Running it beforehand was resulting in a corrupted state
if it was the first time bundle install was run.
parent f9bae3c4
...@@ -58,11 +58,12 @@ if [ -e $HOME/edx-rbenv_clean.tar.gz ]; then ...@@ -58,11 +58,12 @@ if [ -e $HOME/edx-rbenv_clean.tar.gz ]; then
tar -C $HOME -xf $HOME/edx-rbenv_clean.tar.gz tar -C $HOME -xf $HOME/edx-rbenv_clean.tar.gz
fi fi
# Ensure the Ruby environment is in a clean state and # Bootstrap Ruby requirements so we can run the tests
# bootstrap Ruby requirements so we can run the tests
bundle clean --force
bundle install bundle install
# Ensure the Ruby environment contains no stray gems
bundle clean --force
# Reset the jenkins worker's virtualenv back to the # Reset the jenkins worker's virtualenv back to the
# state it was in when the instance was spun up. # state it was in when the instance was spun up.
if [ -e $HOME/edx-venv_clean.tar.gz ]; then if [ -e $HOME/edx-venv_clean.tar.gz ]; then
......
...@@ -66,11 +66,12 @@ if [ -e $HOME/edx-rbenv_clean.tar.gz ]; then ...@@ -66,11 +66,12 @@ if [ -e $HOME/edx-rbenv_clean.tar.gz ]; then
tar -C $HOME -xf $HOME/edx-rbenv_clean.tar.gz tar -C $HOME -xf $HOME/edx-rbenv_clean.tar.gz
fi fi
# Ensure the Ruby environment is in a clean state and # Bootstrap Ruby requirements so we can run the tests
# bootstrap Ruby requirements so we can run the tests
bundle clean --force
bundle install bundle install
# Ensure the Ruby environment contains no stray gems
bundle clean --force
# Reset the jenkins worker's virtualenv back to the # Reset the jenkins worker's virtualenv back to the
# state it was in when the instance was spun up. # state it was in when the instance was spun up.
if [ -e $HOME/edx-venv_clean.tar.gz ]; then if [ -e $HOME/edx-venv_clean.tar.gz ]; then
......
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