--- a/.gitlab-ci.yml Fri Nov 22 18:56:42 2019 +0100
+++ b/.gitlab-ci.yml Wed Dec 18 14:10:49 2019 +0100
@@ -36,12 +36,22 @@
- (cd tests; python3 /ci/repos/mercurial/tests/run-tests.py --color=always --pure)
doc:
- image: octobus/ci-py2-evolve-doc
+ image: octobus/ci-py2-evolve-tutorial-doc
script:
- - cd docs/
+ # Run the documentation test file in Python 2
+ - cd docs/tutorial
+ # Install some dependencies for the test file
+ - ./prepare_test_file.sh
+ - python /ci/repos/mercurial/tests/run-tests.py test-training.t
+ # But run the documentation generation in Python3
+ - python3 -m venv .venv
+ - source .venv/bin/activate
+ # Install some dependencies for the doc generation
+ - ./prepare_pandoc.sh
+ - cd ..
+ # Sphinx is installed globally outside and runs with Python2 but
+ # pandoc is launching filters with current Python, which is Python 3
- make
- variables:
- LANG: en_us.UTF-8
artifacts:
paths:
- html/*