.gitlab-ci.yml
changeset 5227 b24de4b465ea
parent 4986 1214f3d085a9
child 5228 cfabc3c4aa10
--- 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/*