From e8214a1dc8747410fc80bbcf3ad39d12bb839b77 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Wed, 21 Oct 2015 18:56:00 -0400 Subject: [PATCH] Wipe existing version when replacing. CircleCI re-uses your existing venv cache. If we don't do this, it will prompt the user for what to do and hang the build on certain kinds of updates. --- circle.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/circle.yml b/circle.yml index 92d479f54c..c8de646c7b 100644 --- a/circle.yml +++ b/circle.yml @@ -13,23 +13,23 @@ dependencies: - bundle install - pip install setuptools - - pip install -r requirements/edx/paver.txt + - pip install --exists-action w -r requirements/edx/paver.txt # Mirror what paver install_prereqs does. # After a successful build, CircleCI will # cache the virtualenv at that state, so that # the next build will not need to install them # from scratch again. - - pip install -r requirements/edx/pre.txt - - pip install -r requirements/edx/github.txt - - pip install -r requirements/edx/local.txt + - pip install --exists-action w -r requirements/edx/pre.txt + - pip install --exists-action w -r requirements/edx/github.txt + - pip install --exists-action w -r requirements/edx/local.txt # HACK: within base.txt stevedore had a # dependency on a version range of pbr. # Install a version which falls within that range. - - pip install pbr==0.9.0 - - pip install -r requirements/edx/base.txt - - if [ -e requirements/edx/post.txt ]; then pip install -r requirements/edx/post.txt ; fi + - pip install --exists-action w pbr==0.9.0 + - pip install --exists-action w -r requirements/edx/base.txt + - if [ -e requirements/edx/post.txt ]; then pip install --exists-action w -r requirements/edx/post.txt ; fi - pip install coveralls==1.0