Commit f057faf6 authored by Emanuele Aina's avatar Emanuele Aina

gitlab-ci: Run configured linters as done on Phabricator

Provide a backward-compatible way to run linters for projects that have been
configured for use with Phabricator/Differential.

Even without Phabricator, `arc lint` is a good configurable frontend to run
per-language linters, so it's not a bad choice even without backward
compatibility concerns.
Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 3a3f1e91
Pipeline #121498 passed with stage
in 57 seconds
check_formatting:
image: debian:buster
stage: build
before_script:
- export DEBIAN_FRONTEND=noninteractive
- apt update
- apt install -y git-core arcanist-clang-format-linter pep8 shellcheck
script:
- cd "$CI_PROJECT_DIR"
- arc lint --rev "$(git merge-base origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME HEAD)" --never-apply-patches
only:
- merge_requests
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