From: Petr Štetiar Date: Thu, 6 Aug 2020 09:04:04 +0000 (+0200) Subject: Add GitLab CI X-Git-Tag: v3.0.0~34 X-Git-Url: http://git.openwrt.org/openwrt/docs.git?a=commitdiff_plain;h=9b3beb9b71cfceed73395f3f61858f8cde99b02b;p=web%2Ffirmware-selector-openwrt-org.git Add GitLab CI For the start just simple Python (black+flake8), CSS, HTML and SVG checking with html5validator. Signed-off-by: Petr Štetiar --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5a01f22 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 index 0000000..2e3df5b --- /dev/null +++ b/.gitlab/ci/prebuild.yml @@ -0,0 +1,3 @@ +check Python scripts with black and flake8: + stage: pre-build + extends: .openwrt-pythoncheck