diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2018-12-30 19:16:24 +0000 |
---|---|---|
committer | Chandan Singh <csingh43@bloomberg.net> | 2019-01-03 03:44:17 +0000 |
commit | 3fae34467f46d63407a8cf8d43f2df57f13af4e9 (patch) | |
tree | a54639daa29300acfa9dba1d98538d83803e07e7 /.gitlab-ci.yml | |
parent | afa0a3697c80dbdae5560bf35f670ba104cb1e27 (diff) | |
download | buildstream-3fae34467f46d63407a8cf8d43f2df57f13af4e9.tar.gz |
Move sphinx build functionality to tox
Currently the CI and the docs both have to duplicate the same inforation
about how to gather dependencies etc, and have to use hacky ways to run
them.
Add a new `docs` environment to our tox setup so that building docs is
as simple as running `tox -e docs`.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 50bddd76c..7cec8d1ed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -154,20 +154,13 @@ tests-fedora-missing-deps: # 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, -# as it will significantly grow the backing image. docs: stage: test + variables: + BST_FORCE_SESSION_REBUILD: 1 script: - - export BST_SOURCE_CACHE="$(pwd)/cache/integration-cache/sources" - # Currently sphinx_rtd_theme does not support Sphinx >1.8, this breaks search functionality - - pip3 install sphinx==1.7.9 - - pip3 install sphinx-click - - pip3 install sphinx_rtd_theme - - cd dist && ./unpack.sh && cd buildstream - - make BST_FORCE_SESSION_REBUILD=1 -C doc - - cd ../.. - - mv dist/buildstream/doc/build/html public + - env BST_SOURCE_CACHE="$(pwd)/cache/integration-cache/sources" tox -e docs + - mv doc/build/html public except: - schedules artifacts: |