summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-13 13:51:24 +0100
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-18 14:27:00 +0900
commitfd91491a7619964e01d1fc8dede1c07cb68a433f (patch)
tree47d0ddddcd10ae06aa310719eb0e283685ac5a3e /.gitlab-ci.yml
parent2e37fb1eefec988c336f45df334255b2dbbb4b6d (diff)
downloadbuildstream-fd91491a7619964e01d1fc8dede1c07cb68a433f.tar.gz
.gitlab-ci.yml: Use `pip3 install --no-index` when installing BuildStream
This means we don't download anything from PyPI during the BuildStream tests. Everything used is already in the Docker image. This also removes an unnecessary `pip3 install coverage` call. The Coverage library contained in the Docker image. This fixes #100
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3d2fa7fdf..80a25dd15 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,7 +36,7 @@ integration_linux:
stage: test
script:
- - pip3 install .
+ - pip3 install --no-index .
- cd integration-tests
- ./run-test.sh --arg --colors --cov ../.coveragerc --sources ${XDG_CACHE_HOME}/buildstream/sources test
- cd ..
@@ -71,7 +71,7 @@ integration_unix:
variables:
BST_FORCE_BACKEND: "unix"
script:
- - pip3 install .
+ - pip3 install --no-index .
- cd integration-tests
- ./run-test.sh --arg --colors --cov ../.coveragerc --sources ${XDG_CACHE_HOME}/buildstream/sources test
- cd ..
@@ -89,8 +89,7 @@ integration_unix:
coverage:
stage: coverage
script:
- - pip3 install coverage
- - pip3 install .
+ - pip3 install --no-index .
- mkdir report
- cd report
- cp ../coverage-linux/coverage.linux .coverage
@@ -109,13 +108,17 @@ coverage:
# Automatically build documentation, only for merges which land
# on master branch.
+#
+# Note: We still do not enforce a consistent installation of python2
+# or sphinx, as python2 will significantly grow the backing image.
+#
pages:
stage: docs
script:
- dnf install -y python2
- pip3 install sphinx
- pip3 install sphinx-click
- - pip3 install --user -e .
+ - pip3 install --user -e --no-index .
- make -C doc
- mv doc/build/html public
artifacts: