From 8140fff09b51affc770283a412b05abaf177513b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 17 Jun 2017 22:43:53 +0300 Subject: [PATCH] Use ppu to cleanup pip cache Use remove-old-files.py from ppu to cleanup pip cache at Travis and AppVeyor. --- project_template/.travis.yml | 5 ++++- project_template/appveyor.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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" -- 2.39.5