From 9e32fb27e71ca0ae32a0eead712a0504c9d2d951 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 1 Apr 2020 14:49:10 +0200 Subject: [PATCH] [fix] travis: Permission denied: '/home/travis/.cache/pip/...' Fix "Permission denied: '/home/travis/.cache/" errors from travis build [1]. Change owner https://docs.travis-ci.com/user/caching/#caches-and-read-permissions and remove old log in the *before_caching* phase: https://docs.travis-ci.com/user/caching/#before_cache-phase About pip cache see: https://docs.travis-ci.com/user/caching/#pip-cache Signed-off-by: Markus Heiser [1] https://travis-ci.org/github/asciimoo/searx/jobs/669664131#L220 --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 911ca98e1..94303773d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,9 @@ language: python cache: - directories: - $HOME/.cache/pip - +before_cache: + - sudo chown -R travis:travis $HOME/.cache/pip + - rm -f $HOME/.cache/pip/log/debug.log addons: firefox: "latest"