aboutsummaryrefslogtreecommitdiff
path: root/kokoro/check-format
diff options
context:
space:
mode:
authordan sinclair <dj2@everburning.com>2018-11-22 16:57:29 -0500
committerDavid Neto <dneto@google.com>2018-11-22 16:57:29 -0500
commitda74d350d628dca19c9ac2b6c057e518203eb3f3 (patch)
treeaf761aa698eb184bfd861edb06ba0ed7edcf9045 /kokoro/check-format
parentfcef06cabdfb1cb5c13001ebae8bb5e2b14681bf (diff)
downloadamber-da74d350d628dca19c9ac2b6c057e518203eb3f3.tar.gz
Add cpplint (#90)
Add cpplint
Diffstat (limited to 'kokoro/check-format')
-rw-r--r--kokoro/check-format/build.sh20
1 files changed, 13 insertions, 7 deletions
diff --git a/kokoro/check-format/build.sh b/kokoro/check-format/build.sh
index 05b24a9..9c104f0 100644
--- a/kokoro/check-format/build.sh
+++ b/kokoro/check-format/build.sh
@@ -19,6 +19,19 @@ set -x # display commands
BUILD_ROOT=$PWD
SRC=$PWD/github/amber
+cd $SRC
+./tools/git-sync-deps
+
+echo $(date): Check copyright...
+./tools/copyright.py --check;
+echo $(date): check completed.
+
+echo $(date): Linting...
+./tools/run-lint.sh;
+echo $(date): check complete.
+
+# Check format adds a bunch of stuff to the repo so do that check last.
+
# Get clang-format-5.0.0.
# Once kokoro upgrades the Ubuntu VMs, we can use 'apt-get install clang-format'
curl -L http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz -o clang-llvm.tar.xz
@@ -31,10 +44,3 @@ curl -L http://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/clang-form
echo $(date): Check formatting...
./tools/check_code_format.sh;
echo $(date): check completed.
-
-# Remove the formatter
-rm tools/clang-format-diff.py
-
-echo $(date): Check copyright...
-./tools/copyright.py --check;
-echo $(date): check completed.