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 <>
parent 3a3f1e91
Pipeline #121498 passed with stage
in 57 seconds
image: debian:buster
stage: build
- export DEBIAN_FRONTEND=noninteractive
- apt update
- apt install -y git-core arcanist-clang-format-linter pep8 shellcheck
- arc lint --rev "$(git merge-base origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME HEAD)" --never-apply-patches
- 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