CI to catch missing `make format`

pull/760/head
Michael 5 years ago
parent d6366bc45f
commit 98a93dbdeb
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

@ -5,6 +5,16 @@ cache: ccache
matrix:
fast_finish: true
include:
- os: linux
dist: xenial
compiler: gcc
env: MAKE_TARGET=format-verify PATH="/usr/lib/llvm-8/bin:$PATH"
addons:
apt:
sources:
- llvm-toolchain-xenial-8
packages:
- clang-format-8
- os: linux
dist: xenial
compiler: gcc
@ -77,6 +87,7 @@ addons:
packages:
- binutils-gold
- build-essential
- clang-format
- cmake
- curl
- docker-ce

@ -243,6 +243,9 @@ abyss: debug
format:
clang-format -i $$(find jni daemon llarp include libabyss | grep -E '\.[h,c](pp)?$$')
format-verify: format
git diff --quiet || echo 'Please run make format!!' && git --no-pager diff && false
analyze-config: clean
mkdir -p '$(BUILD_ROOT)'
$(ANALYZE_CONFIG_CMD)

Loading…
Cancel
Save