From e064b6882c50bed7c3ae4f982a9b3b1edce4f316 Mon Sep 17 00:00:00 2001 From: Benoit Mortier <benoit.mortier@opensides.be> Date: Wed, 4 Oct 2017 18:12:02 +0200 Subject: [PATCH] :ambulance: fix(gitlab): add .gitlab-ci.yml add test for code conformance and compilation Signed-off-by: Benoit Mortier <benoit.mortier@opensides.be> --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..4f5af51 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +# Specify docker image +image: debian:stretch + +# Define variable to disable SSL verification of GIT +variables: + GIT_SSL_NO_VERIFY: "true" + +# Generate perlcritic rapport +create_perlcritic_rapport: + only: + - branches + - tags + before_script: + - apt-get update -qq + - apt-get install -y -qq libperl-critic-perl + script: + - perlcritic . + +# Perl lint +create_perl_lint_rapport: + only: + - branches + - tags + script: + - find bin/ -type f -print0 | xargs -0 -n1 perl -cw -- GitLab