From eed78fbbb7883cbc5e16c180e61c2ad2013770b0 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 13 Feb 2019 13:24:33 +0000 Subject: [PATCH] Add clang-format to CirleCI --- circle.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/circle.yml b/circle.yml index cf33c93bc..15bdba6fe 100644 --- a/circle.yml +++ b/circle.yml @@ -35,6 +35,14 @@ defaults: sudo pip3 install codespell codespell --skip=".git" + clangformat: &clangformat + run: + name: "Run clang-format" + command: | + clang-format --version + clang-format -i src/* include/* + git diff --exit-code + build: &build run: name: "Build" @@ -319,6 +327,7 @@ jobs: steps: - checkout - *codespell + - *clangformat # The job collects built packages (available in the workspace) and # uploads them to the GitHub release matching the git tag.