From 6466c5e1c6d6d7c110a2f0b28cbc3f03ce8916af Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 27 Nov 2019 10:49:19 +0100 Subject: [PATCH] Check if formatting is ok --- .circleci/config.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 -- 2.47.2