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.