Add GitLab CI
authorPetr Štetiar <ynezz@true.cz>
Thu, 6 Aug 2020 09:04:04 +0000 (11:04 +0200)
committerPetr Štetiar <ynezz@true.cz>
Thu, 6 Aug 2020 12:57:56 +0000 (14:57 +0200)
For the start just simple Python (black+flake8), CSS, HTML and SVG
checking with html5validator.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
.gitlab-ci.yml [new file with mode: 0644]
.gitlab/ci/prebuild.yml [new file with mode: 0644]

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..5a01f22
--- /dev/null
@@ -0,0 +1,13 @@
+include:
+  - local: '.gitlab/ci/prebuild.yml'
+  - remote: https://gitlab.com/ynezz/openwrt-ci/raw/master/openwrt-ci/gitlab/main.yml
+
+stages:
+  - pre-build
+  - test
+
+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
diff --git a/.gitlab/ci/prebuild.yml b/.gitlab/ci/prebuild.yml
new file mode 100644 (file)
index 0000000..2e3df5b
--- /dev/null
@@ -0,0 +1,3 @@
+check Python scripts with black and flake8:
+  stage: pre-build
+  extends: .openwrt-pythoncheck