From: Otto Moerbeek Date: Wed, 27 Nov 2019 09:49:19 +0000 (+0100) Subject: Check if formatting is ok X-Git-Tag: auth-4.3.0-alpha1~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F8582%2Fhead;p=thirdparty%2Fpdns.git Check if formatting is ok --- diff --git a/.circleci/config.yml b/.circleci/config.yml index 4b93200431..fdad96fd71 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -486,6 +486,24 @@ jobs: paths: - project + check-formatting: + docker: + - image: debian:buster + steps: + - run: + name: Install dependencies + command: | + apt-get update && apt-get -qq --no-install-recommends install \ + clang-format git + - get-workspace + - run: + name: Check formatting + command: | + ./build-scripts/format-code pdns/recursordist/*.[ch][ch] + git diff + exit $(git diff | wc -l) + working_directory: ~/project + build-auth: docker: - image: debian:buster @@ -1402,6 +1420,9 @@ workflows: - test-auth-regress-tinydns: requires: - build-auth + - check-formatting: + requires: + - checkout - build-recursor: requires: - checkout