summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-06 16:29:45 +0100
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-10 21:12:52 +0900
commit7704f58146ef266e135425e11572df434573c370 (patch)
tree6d21c173f2033f958f6b62c3db906953bdd19ea7 /.gitlab-ci.yml
parentb98eb1f0d3f34c9ac35a9518c108e3fe8960c139 (diff)
downloadbuildstream-7704f58146ef266e135425e11572df434573c370.tar.gz
.gitlab-ci.yml: Follow latest BuildStream Docker image
This allows us to remove env vars that are now set in the image, and some packages which are already installed in the image. I've left Sphinx (which is needed for the documentation task) out of the image as it pulls in a bunch of Python 2 dependencies that would bloat the image. Although note that Python 2 is already present in the image because Bazaar depends on it.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml18
1 files changed, 5 insertions, 13 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1ad364527..4b21c7551 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: samthursfield/buildstream:0.1-20170621.1
+image: buildstream/buildstream-fedora:latest
cache:
paths:
@@ -14,10 +14,6 @@ before_script:
- mount
- df -h
- # Work around https://github.com/fedora-cloud/docker-brew-fedora/issues/14
- - export LANG="C.UTF-8"
- - export LC_ALL="C.UTF-8"
-
# Store cache in the project directory
- mkdir -p "$(pwd)/cache"
- export XDG_CACHE_HOME="$(pwd)/cache"
@@ -27,7 +23,6 @@ before_script:
pytest:
stage: test
script:
- - dnf install -y bzr patch
- python3 setup.py test
- mkdir -p coverage-pytest/
- cp .coverage.* coverage-pytest/coverage.pytest
@@ -41,8 +36,6 @@ integration_linux:
stage: test
script:
- - dnf install -y findutils bzr which
- - pip3 install coverage
- pip3 install .
- git clone https://gitlab.com/BuildStream/buildstream-tests.git
- cd buildstream-tests
@@ -63,9 +56,10 @@ pytest_unix:
BST_FORCE_BACKEND: "unix"
script:
# We remove the Bubblewrap and OSTree packages here so that we catch any
- # codepaths that try to use them
+ # 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
- - dnf install -y bzr patch
- python3 setup.py test
- mkdir -p coverage-pytest-unix
- cp .coverage.* coverage-pytest-unix/coverage.pytest-unix
@@ -78,8 +72,6 @@ integration_unix:
variables:
BST_FORCE_BACKEND: "unix"
script:
- - dnf install -y findutils bzr which
- - pip3 install coverage
- pip3 install .
- git clone https://gitlab.com/BuildStream/buildstream-tests.git
- cd buildstream-tests
@@ -122,7 +114,7 @@ coverage:
pages:
stage: docs
script:
- - dnf install -y findutils python2
+ - dnf install -y python2
- pip3 install sphinx
- pip3 install sphinx-click
- pip3 install --user -e .