Jason Monk 53b2a73c37 Add api lint to upload checks
Currently will never block upload, only considered a warning, but
will print out any lint issues discovered.

Test: do an upload
Bug: 69115822
Change-Id: I69b8e5a3f92ac28ee3c954408e88a1056c33af65
2017-11-13 13:25:05 -05:00

5 lines
188 B
Bash
Executable File

#!/bin/bash
if git show --name-only --pretty=format: $1 | grep api/ > /dev/null; then
python tools/apilint/apilint.py <(git show $1:api/current.txt) <(git show $1^:api/current.txt)
fi