From ed558d8b1dd8cadf233f43f846da6a6dca23aa6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Thu, 20 Aug 2020 08:40:57 +0200 Subject: [PATCH] ci: pre-build with Python 3.6 as well MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In order to spot possible compatibility issues before testing stage. Signed-off-by: Petr Å tetiar --- .gitlab-ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9356e56..a7c5a87 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 -- 2.30.2