mirror of
https://github.com/corda/corda.git
synced 2025-02-21 09:51:57 +00:00
Added new API check script and API version
This commit is contained in:
parent
523d550b0d
commit
b78c2d2efa
17
.ci/check-api-changes.sh
Normal file
17
.ci/check-api-changes.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Starting API Diff"
|
||||
|
||||
apiCurrent=./api-current.txt
|
||||
if [ ! -f $apiCurrent ]; then
|
||||
echo "Missing $apiCurrent file - cannot check API diff. Please rebase or add it to this release or ensure working dir is .ci/"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
diffContents=`diff -u $apiCurrent ../build/api/api-corda-*.txt`
|
||||
echo "Diff contents: "
|
||||
echo "$diffContents"
|
||||
removals=`echo "$diffContents" | grep "^-" | wc -l`
|
||||
echo "Number of API removals/changes: "$removals
|
||||
echo "Exiting with exit code" $removals
|
||||
exit $removals
|
Loading…
x
Reference in New Issue
Block a user