travis: use tests/requirements.txt

Explicitly install ansible-lint pytest pytest-cov via pip results of a
specific pytest version (4.3.1) which is not supported for pytest-cov
(2.10).
Because we are already defining a specific pytest version in the tests
requirements then we can install all the python dependencies from that
file and remove this from the pip install command.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 296aa13b3c)
pull/5436/head
Dimitri Savineau 2020-06-19 18:04:55 -04:00 committed by Dimitri Savineau
parent bc1cc666e4
commit 1d93b166fb
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ python:
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
install:
- pip install -r requirements.txt
- pip install ansible-lint pytest pytest-cov
- pip install -r tests/requirements.txt
- pip install ansible-lint pytest-cov
script:
- if [[ -n $(grep --exclude-dir=.git -P "\xa0" -r .) ]]; then echo 'NBSP characters found'; exit 1; fi
- pytest --cov=library/ --cov=plugins/filter/ -vvvv tests/library/ tests/plugins/filter/