ci: pre-build with Python 3.6 as well
authorPetr Štetiar <ynezz@true.cz>
Thu, 20 Aug 2020 06:40:57 +0000 (08:40 +0200)
committerPetr Štetiar <ynezz@true.cz>
Thu, 20 Aug 2020 06:47:01 +0000 (08:47 +0200)
In order to spot possible compatibility issues before testing stage.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
.gitlab-ci.yml

index 9356e56bba43f462e37314be502d4f1ddf70477c..a7c5a87aaf08342b7075efee6e672f6c12f0f558 100644 (file)
@@ -23,9 +23,9 @@ check HTML, CSS and SVG with html5validator:
   script:
     - html5validator --root www --also-check-css --also-check-svg --show-warnings --log INFO
 
-build site on Python 3.8:
+.build python:
   stage: pre-build
-  image: python:3.8-slim-buster
+  image: python:$CI_PYTHON_VERSION-slim-buster
   before_script:
     - apt-get update; apt-get install -y make
   script:
@@ -37,6 +37,16 @@ build site on Python 3.8:
     paths:
       - build
 
+build site on Python 3.6:
+  extends: .build python
+  variables:
+    CI_PYTHON_VERSION: "3.6"
+
+build site on Python 3.8:
+  extends: .build python
+  variables:
+    CI_PYTHON_VERSION: "3.8"
+
 test site with selenium:
   stage: test
   image: selenium/standalone-firefox:latest