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.
This commit is contained in:
@@ -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
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user