Circle CI: Check code with clang-format

This commit is contained in:
Paweł Bylica 2018-08-28 15:04:21 +02:00
parent 3076fc8429
commit b290ef3dd0
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 12 additions and 0 deletions

View File

@ -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