fix travis builds (pipy in xenial, don't error if doc missing in default path after install)

pull/2814/head
sebres 2020-08-04 14:25:31 +02:00
parent 9100d07c03
commit 0ef8f6675d
1 changed files with 2 additions and 3 deletions

View File

@ -18,7 +18,6 @@ matrix:
- python: 2.7 - python: 2.7
name: 2.7 (xenial) name: 2.7 (xenial)
- python: pypy - python: pypy
dist: trusty
- python: 3.3 - python: 3.3
dist: trusty dist: trusty
- python: 3.4 - python: 3.4
@ -70,8 +69,8 @@ script:
- if [[ "$F2B_PY" = 3 ]]; then coverage run bin/fail2ban-testcases --verbosity=2; fi - if [[ "$F2B_PY" = 3 ]]; then coverage run bin/fail2ban-testcases --verbosity=2; fi
# Use $VENV_BIN (not python) or else sudo will always run the system's python (2.7) # Use $VENV_BIN (not python) or else sudo will always run the system's python (2.7)
- sudo $VENV_BIN/pip install . - sudo $VENV_BIN/pip install .
# Doc files should get installed on Travis under Linux (python >= 3.8 seem to use another path segment) # Doc files should get installed on Travis under Linux (some builds/python's seem to use another path segment)
- if [[ $TRAVIS_PYTHON_VERSION < 3.8 ]]; then test -e /usr/share/doc/fail2ban/FILTERS; fi - test -e /usr/share/doc/fail2ban/FILTERS && echo 'found' || echo 'not found'
# Test initd script # Test initd script
- shellcheck -s bash -e SC1090,SC1091 files/debian-initd - shellcheck -s bash -e SC1090,SC1091 files/debian-initd
after_success: after_success: