From: Oleg Broytman Date: Sat, 17 Jun 2017 19:43:53 +0000 (+0300) Subject: Use ppu to cleanup pip cache X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=8140fff09b51affc770283a412b05abaf177513b;p=cookiecutter.git Use ppu to cleanup pip cache Use remove-old-files.py from ppu to cleanup pip cache at Travis and AppVeyor. --- diff --git a/project_template/.travis.yml b/project_template/.travis.yml index c64271d..cf04d5d 100644 --- a/project_template/.travis.yml +++ b/project_template/.travis.yml @@ -29,7 +29,10 @@ matrix: - env: TOXENV=pypy install: - - travis_retry pip install tox + - travis_retry pip install tox ppu script: - tox + +before_cache: + - remove-old-files.py -o 180 ~/.cache/pip diff --git a/project_template/appveyor.yml b/project_template/appveyor.yml index 4f8169a..5c4d648 100644 --- a/project_template/appveyor.yml +++ b/project_template/appveyor.yml @@ -72,7 +72,7 @@ install: - "python --version" - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" - "pip --version" - - "pip install tox" + - "pip install tox ppu" # No build step - we don't have C extensions build: false @@ -89,3 +89,6 @@ test_script: #artifacts: # # Archive the generated packages in the ci.appveyor.com build report # - path: dist\* + +after_test: + - "remove-old-files.py -o 180 %LOCALAPPDATA%\\pip\\Cache"