diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 63 |
1 files changed, 63 insertions, 0 deletions
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 |