aboutsummaryrefslogtreecommitdiff
path: root/PREUPLOAD.cfg
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2019-05-15 10:52:02 +0100
committerPaul Duffin <paulduffin@google.com>2019-05-15 12:27:01 +0100
commit4f818e3cb428a79db73103b7db4000df9c5953eb (patch)
treea39b73410f64bd0a49101b16c08694c2fe35801b /PREUPLOAD.cfg
parentf65dbf1269bcffd4e2c7951415915dbe4e681b46 (diff)
downloadlibcore-4f818e3cb428a79db73103b7db4000df9c5953eb.tar.gz
Add pre-upload check to enforce correct formatting of .bp files
Bug: 132757397 Test: tools/check-bpfmt.sh 16a057f0c8ed4f7212043615228da9311760850a Change-Id: Ia3cd3f7fa075d469b5b6126fb739df915a65bab6
Diffstat (limited to 'PREUPLOAD.cfg')
-rw-r--r--PREUPLOAD.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 3a75225b6e7..24292c1b61b 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -8,3 +8,6 @@ checkstyle-luni-json-xml = java -jar ${REPO_ROOT}/prebuilts/checkstyle/checkstyl
# Ensure there are no Apache-licensed files under:
# * ojluni/src/main/java
checkstyle-ojluni = java -jar ${REPO_ROOT}/prebuilts/checkstyle/checkstyle.jar -c tools/checkstyle/checkstyle-forbid-apache.xml ojluni/src/main/java
+
+# Ensure that bp files are correctly formatted:
+bpfmt-check = tools/check-bpfmt.sh ${PREUPLOAD_COMMIT}