From 9b3beb9b71cfceed73395f3f61858f8cde99b02b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Thu, 6 Aug 2020 11:04:04 +0200 Subject: [PATCH] Add GitLab CI MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit For the start just simple Python (black+flake8), CSS, HTML and SVG checking with html5validator. Signed-off-by: Petr Å tetiar --- .gitlab-ci.yml | 13 +++++++++++++ .gitlab/ci/prebuild.yml | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 .gitlab/ci/prebuild.yml 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 -- 2.30.2