searxng/.travis.yml
Markus Heiser 9e32fb27e7 [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 <markus.heiser@darmarit.de>

[1] https://travis-ci.org/github/asciimoo/searx/jobs/669664131#L220
2020-04-01 14:49:10 +02:00

56 lines
1.2 KiB
YAML

os: linux
dist: bionic
arch: arm64
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"
install:
- make V=1 install
- make V=1 gecko.driver
- make V=1 node.env
- local/py3/bin/pip install codecov
script:
- make V=1 themes
- make V=1 test
after_success:
- make V=1 test.coverage
- codecov
stages:
- test
- name: docker
if: branch = master AND type != pull_request AND env(DOCKER_USERNAME) IS present
jobs:
include:
- python: "3.5"
- python: "3.6"
- stage: docker
python: "3.6"
git:
depth: false
services:
- docker
addons: []
before_install: true
install: true
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- make -e GIT_URL=$(git remote get-url origin) docker.push
after_success: true
notifications:
irc:
channels:
- "irc.freenode.org#searx"
template:
- "%{repository}/#%{build_number}/%{branch} (%{author}): %{message} %{build_url}"
on_success: change