summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-18 13:03:14 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-18 13:03:14 +0100
commitfc2644267d11613b81294ef8be6a014b9db55c09 (patch)
tree804829f6c66e3c56bab4f37ad34826a8be417500
parentfd91491a7619964e01d1fc8dede1c07cb68a433f (diff)
downloadbuildstream-sam/no-install-python-test-deps.tar.gz
.gitlab-ci.yml: Prevent installing test dependenciessam/no-install-python-test-deps
It turns out that `setup.py test` will pull stuff from PyPI by default. All of the test suite dependencies are now pre-installed in in the Docker image at fixed versions, so we prevent anything being updated or newly installed during BuildStream CI jobs.
-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..fc5b60443 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 --allow-hosts NONE
- 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 --allow-hosts NONE
- mkdir -p coverage-pytest-unix
- cp .coverage.* coverage-pytest-unix/coverage.pytest-unix
artifacts: