summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-09 17:59:09 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-20 18:10:48 +0000
commite70dd1f8c6c3ff380ec31a0042715857b3dda9ee (patch)
treeec4318a9feaf092759981a17117468a6ef82033e
parent57e6358fef757f9c9d3ff202442450dcb1d1ac32 (diff)
downloadbuildstream-e70dd1f8c6c3ff380ec31a0042715857b3dda9ee.tar.gz
gitlab-ci.yml: Add linux without brwap/ostree to ensure tests behave
This allows us to make sure that tests behave nicely while missing brwap and ostree.
-rw-r--r--.gitlab-ci.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 110596781..ae28800cd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -137,6 +137,24 @@ tests-unix:
- python3 setup.py test --index-url invalid://uri --addopts --integration
+tests-fedora-missing-deps:
+ # Ensure that tests behave nicely while missing bwrap and ostree
+ image: buildstream/testsuite-fedora:28-master-119-552f5fc6
+ <<: *tests
+
+ script:
+ # We remove the Bubblewrap and OSTree packages here so that we catch any
+ # codepaths that try to use them. Removing OSTree causes fuse-libs to
+ # disappear unless we mark it as user-installed.
+ - dnf mark install fuse-libs
+ - dnf erase -y bubblewrap ostree
+
+ - useradd -Um buildstream
+ - chown -R buildstream:buildstream .
+
+ - python3 setup.py test --index-url invalid://uri --addopts --integration
+
+
# Automatically build documentation for every commit, we want to know
# if building documentation fails even if we're not deploying it.
# Note: We still do not enforce a consistent installation of python3-sphinx,