excempt svg from html5validator
[web/firmware-selector-openwrt-org.git] / .gitlab-ci.yml
index 9356e56bba43f462e37314be502d4f1ddf70477c..15ca6340c0ffb887c5137091bc35aa53e54a9b26 100644 (file)
@@ -21,11 +21,11 @@ check HTML, CSS and SVG with html5validator:
   stage: pre-build
   image: cyb3rjak3/html5validator:latest
   script:
-    - html5validator --root www --also-check-css --also-check-svg --show-warnings --log INFO
+    - html5validator --root www --also-check-css --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