summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-18 15:37:46 +0900
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-18 15:11:44 +0000
commita243a3335b7c113a49b1d5f0daa2c11efe2299bd (patch)
treec4157a905b9d1a63a412d8ab0dcc691ac51909b4
parentc1c2040226202ef3a9092005e38ae79dce27a3ee (diff)
downloadbuildstream-no-install-test-requires.tar.gz
.gitlab-ci.yml: Issue #100 - Avoid installing setup.py test_requiresno-install-test-requires
This avoids installing random versions of python packages from pypi when running the pytest test suite.
-rw-r--r--.gitlab-ci.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 80a25dd15..5567ba8dd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -23,7 +23,7 @@ before_script:
pytest:
stage: test
script:
- - python3 setup.py test
+ - python3 setup.py test --index-url invalid://uri
- mkdir -p coverage-pytest/
- cp .coverage.* coverage-pytest/coverage.pytest
artifacts:
@@ -59,7 +59,7 @@ pytest_unix:
# disappear unless we mark it as user-installed.
- dnf mark install fuse-libs
- dnf erase -y bubblewrap ostree
- - python3 setup.py test
+ - python3 setup.py test --index-url invalid://uri
- mkdir -p coverage-pytest-unix
- cp .coverage.* coverage-pytest-unix/coverage.pytest-unix
artifacts: