Commit 95e6f621 authored by Benoit Mortier's avatar Benoit Mortier

Merge branch '5-add-gitlab-ci-yml' into 'master'

Resolve "add .gitlab-ci.yml"

Closes #5

See merge request !4
parents e4f35e25 a64dc472
# Specify docker image
image: debian:stretch
# Define variable to disable SSL verification of GIT
variables:
GIT_SSL_NO_VERIFY: "true"
# Execute before every job
# Install libperl-critic-perl, php-codesniffer, git and php
# PHP codesniffer
create_php_code_sniffer_rapport:
only:
- branches
- tags
before_script:
- apt-get update -qq
- apt-get install -y -qq php-codesniffer git php-cli
script:
- find . -type f -name '*.php' -o -name '*.inc' -exec phpcs --standard=php-codesniffer-rules/FDStandard/ruleset.xml "{}" \;
# PHP lint
create_php_lint_rapport:
only:
- branches
- tags
before_script:
- apt-get update -qq
- apt-get install -y -qq php-cli
script:
- find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment