From 130f76f66efbd961ff33775ba37e550131ab7bf7 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Sun, 27 May 2018 13:01:17 +0200 Subject: [PATCH] enable pip/pre-commit caching on travis and appveyor --- .travis.yml | 4 ++++ appveyor.yml | 4 ++++ changelog/3502.trivial.rst | 1 + 3 files changed, 9 insertions(+) create mode 100644 changelog/3502.trivial.rst diff --git a/.travis.yml b/.travis.yml index 22e840ed9..1d092149b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -77,3 +77,7 @@ notifications: skip_join: true email: - pytest-commit@python.org +cache: + directories: + - $HOME/.cache/pip + - $HOME/.cache/pre-commit diff --git a/appveyor.yml b/appveyor.yml index 4f4afe15c..b808fa6d9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -42,3 +42,7 @@ build: false # Not a C# project, build stuff at the test step instead. test_script: - call scripts\call-tox.bat + +cache: + - '%LOCALAPPDATA%\pip\cache' + - '%USERPROFILE%\.cache\pre-commit' diff --git a/changelog/3502.trivial.rst b/changelog/3502.trivial.rst new file mode 100644 index 000000000..3ac2a57ab --- /dev/null +++ b/changelog/3502.trivial.rst @@ -0,0 +1 @@ +Enable caching for pip/pre-commit in order to reduce build time on travis/appveyor.