From 0632591996893fe136a1f2fe44d9b9f404f41f3e Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Thu, 1 Nov 2018 13:30:58 +0100 Subject: Initial commit --- .gitlab-ci.yml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..87eb569 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,63 @@ +#image: debian:stretch +image: minimum2scp/systemd-stretch:latest +stages: + - conf-check + - code-check +# - readme-check +before_script: +# - "apt-get -qq update&&apt-get -yqqq install ksh make sudo node-util >/dev/null 2>&1" + - "./.environ-prep" +bash-parser: + script: "export LANG=en_IE.UTF-8;for i in $(cat aux/git-checkers/bashlist);do shellcheck -xe SC2181,SC2188,SC2015,SC2002,SC2119,SC2004,SC1090,SC2164,SC2016 $i&&echo $i: $(tput -Txterm smul)OK$(tput -Txterm rmul);done" + stage: code-check + only: + - master + environment: + name: production + when: always +korn-parser: + script: "export LANG=en_IE.UTF-8;for i in $(cat aux/git-checkers/kornlist);do shellcheck -xe SC2181,SC2188,SC2015,SC2002,SC2119,SC2004,SC1090,SC2164,SC2016 $i&&echo $i: $(tput -Txterm smul)OK$(tput -Txterm rmul);done" + stage: code-check + only: + - master + environment: + name: production + when: always +posh-parser: + script: "export LANG=en_IE.UTF-8;for i in $(cat aux/git-checkers/poshlist);do shellcheck -xe SC2181,SC2188,SC2015,SC2002,SC2119,SC2004,SC1090,SC2164,SC2016 $i&&echo $i: $(tput -Txterm smul)OK$(tput -Txterm rmul);done" + stage: code-check + only: + - master + environment: + name: production + when: always +#readme-parser: +# script: "make -n" +# stage: readme-check +# only: +# - master +# environment: +# name: production +# when: always +sudoers-parser: + script: "./aux/git-checkers/sudoerschecker" + stage: conf-check + only: + - master + when: always +logrotate-parser: + script: "./aux/git-checkers/logrotchecker" + stage: conf-check + only: + - master + environment: + name: production + when: always +systemd-parser: + script: "./aux/git-checkers/systemdchecker" + stage: conf-check + only: + - master + environment: + name: production + when: always -- cgit v1.2.3