]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
travis: use tests/requirements.txt 5967/head
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 19 Jun 2020 22:04:55 +0000 (18:04 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 19 Jun 2020 22:10:55 +0000 (18:10 -0400)
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>
.travis.yml

index fc33b83eaee95037d8cf35cf208b7d1dc746b496..8d72d5693728a4edaee98ba84cbf3ff7f811d149 100644 (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/