From b290ef3dd027c7579a71c280bbe3933495f8ad81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 28 Aug 2018 15:04:21 +0200 Subject: [PATCH] Circle CI: Check code with clang-format --- circle.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/circle.yml b/circle.yml index a0097a3..20f521f 100644 --- a/circle.yml +++ b/circle.yml @@ -1,6 +1,17 @@ version: 2 jobs: + lint: + docker: + - image: ethereum/cpp-build-env + steps: + - checkout + - run: + name: "Check code format" + command: | + find examples include lib test -name '*.hpp' -o -name '*.cpp' -o -name '*.h' -o -name '*.c' | xargs clang-format -i + git diff --color --exit-code + build: &build docker: - image: ethereum/cpp-build-env @@ -110,6 +121,7 @@ workflows: version: 2 evmc: jobs: + - lint - build - build-clang-3.8 - bindings-go-1.10