From dc78512d6534cbef1d4934c8434a39dbbc78d8d0 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Tue, 21 Aug 2018 18:16:44 +0900 Subject: Testing --- .gitlab-ci.yml | 7 +++++++ dev-requirements.txt | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7f39c09a0..97e86f519 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -66,6 +66,9 @@ source_dist: - chown -R buildstream:buildstream buildstream - cd buildstream + # Install the pinned dev-requirements.txt + - pip3 install -r dev-requirements.txt + # Run the tests from the source distribution, We run as a simple # user to test for permission issues - su buildstream -c 'python3 setup.py test --index-url invalid://uri --addopts --integration' @@ -115,6 +118,9 @@ tests-unix: # Unpack and get into dist/buildstream - cd dist && ./unpack.sh && cd buildstream + # Install the pinned dev-requirements.txt + - pip3 install -r dev-requirements.txt + # Since the unix platform is required to run as root, no user change required - python3 setup.py test --index-url invalid://uri --addopts --integration @@ -207,6 +213,7 @@ coverage: coverage: '/TOTAL +\d+ +\d+ +(\d+\.\d+)%/' script: - cd dist && ./unpack.sh && cd buildstream + - pip3 install -r dev-requirements.txt - pip3 install --no-index . - mkdir report - cd report diff --git a/dev-requirements.txt b/dev-requirements.txt index 80e87aca0..2df3f52d5 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,10 +1,10 @@ coverage == 4.4.0 -pep8 +pep8 == 1.7.1 pytest == 3.7.1 pylint == 2.1.1 pytest-cov >= 2.5.0 -pytest-datafiles -pytest-env -pytest-pep8 -pytest-pylint -pytest-xdist +pytest-datafiles == 1.0 +pytest-env == 0.6.2 +pytest-pep8 == 1.0.6 +pytest-pylint == 0.12.1 +pytest-xdist == 1.22.5 -- cgit v1.2.1