summaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
authorAndrew Moss <1043609+amoss@users.noreply.github.com>2019-11-14 16:49:19 +0100
committerGitHub <noreply@github.com>2019-11-14 16:49:19 +0100
commitac90f27a580aad0c4d20c5354657b34e5ceed29e (patch)
tree88667d78592d86a1392466b909e42fec32953025 /.travis
parent0d985568013377c332a7574fd2935339b583d9d4 (diff)
Updating the Travis pipeline (issue 7189) (#7312)
Added a linting pass. This is non-blocking but will output a measure of how much each .c and .h file deviates from our current .clang format. Changed the standard build to include all of the warning that we are using in dev. Added the dependencies for dbengine and confirmed that the standard build enables dbengine. Fixed the original warnings.
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/clangformat.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/.travis/clangformat.sh b/.travis/clangformat.sh
new file mode 100755
index 0000000000..a5033a4528
--- /dev/null
+++ b/.travis/clangformat.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+find . -type f -name '*.[ch]' | while read filename; do echo -ne "$filename: "; diff <(clang-format -style=file $filename) $filename | wc -l; done