1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Merge pull request #770 from michael-loki/format_verify_fix

Fix format verify
This commit is contained in:
Jeff 2019-08-13 08:36:31 -04:00 committed by GitHub
commit cf3a31fdd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -8,13 +8,13 @@ matrix:
- os: linux
dist: xenial
compiler: gcc
env: MAKE_TARGET=format-verify PATH="/usr/lib/llvm-8/bin:$PATH"
env: MAKE_TARGET=format-verify PATH="/usr/lib/llvm-7/bin:$PATH"
addons:
apt:
sources:
- llvm-toolchain-xenial-8
- llvm-toolchain-xenial-7
packages:
- clang-format-8
- clang-format-7
- os: linux
dist: xenial
compiler: gcc

View file

@ -244,7 +244,9 @@ 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
(type clang-format)
clang-format --version
git diff --quiet || (echo 'Please run make format!!' && git --no-pager diff ; exit 1)
analyze-config: clean
mkdir -p '$(BUILD_ROOT)'