]> granicus.if.org Git - openjpeg/commitdiff
Update ABI tracker script
authormayeut <mayeut@users.noreply.github.com>
Tue, 5 Jul 2016 22:26:37 +0000 (00:26 +0200)
committermayeut <mayeut@users.noreply.github.com>
Tue, 5 Jul 2016 22:26:37 +0000 (00:26 +0200)
Disable previous version.

tools/travis-ci/abi-check.sh

index f9c6732ee8f173031e275d5cf2490ae35513667a..2a50ce49e5a2c70fac5018378a0883132b900116 100755 (executable)
@@ -14,9 +14,13 @@ if [ "${OPJ_CI_ABI_CHECK:-}" != "1" ]; then
 fi
 
 OPJ_UPLOAD_ABI_REPORT=0
-OPJ_PREVIOUS_VERSION="2.1"
+#OPJ_PREVIOUS_VERSION="2.1"
 OPJ_LATEST_VERSION="2.1.1"
-OPJ_LIMIT_ABI_BUILDS="-limit 3"
+if [ "${OPJ_PREVIOUS_VERSION:-}" != "" ]; then
+       OPJ_LIMIT_ABI_BUILDS="-limit 3"
+else
+       OPJ_LIMIT_ABI_BUILDS="-limit 2"
+fi
 OPJ_REPO="https://github.com/uclouvain/openjpeg.git"
 OPJ_SSH_REPO=${OPJ_REPO/https:\/\/github.com\//git@github.com:}
 OPJ_UPLOAD_BRANCH="gh-pages"
@@ -82,12 +86,16 @@ EXIT_CODE=0
 
 # Check API
 abi-compliance-checker -l openjpeg -old $(find ./abi_dump/openjpeg/$OPJ_LATEST_VERSION -name '*.dump') -new $(find ./abi_dump/openjpeg/current -name '*.dump') -header openjpeg.h -api -s || EXIT_CODE=1
-abi-compliance-checker -l openjpeg -old $(find ./abi_dump/openjpeg/$OPJ_PREVIOUS_VERSION -name '*.dump') -new $(find ./abi_dump/openjpeg/$OPJ_LATEST_VERSION -name '*.dump') -header openjpeg.h -api -s || EXIT_CODE=1
+if [ "${OPJ_PREVIOUS_VERSION:-}" != "" ]; then
+       abi-compliance-checker -l openjpeg -old $(find ./abi_dump/openjpeg/$OPJ_PREVIOUS_VERSION -name '*.dump') -new $(find ./abi_dump/openjpeg/$OPJ_LATEST_VERSION -name '*.dump') -header openjpeg.h -api -s || EXIT_CODE=1
+fi
 
 # Check ABI
 if [ "${OPJ_LIMIT_ABI_BUILDS}" != "" ]; then
        abi-compliance-checker -l openjpeg -old $(find ./abi_dump/openjpeg/$OPJ_LATEST_VERSION -name '*.dump') -new $(find ./abi_dump/openjpeg/current -name '*.dump') -header openjpeg.h -abi -s || EXIT_CODE=1
-       abi-compliance-checker -l openjpeg -old $(find ./abi_dump/openjpeg/$OPJ_PREVIOUS_VERSION -name '*.dump') -new $(find ./abi_dump/openjpeg/$OPJ_LATEST_VERSION -name '*.dump') -header openjpeg.h -abi -s || EXIT_CODE=1
+       if [ "${OPJ_PREVIOUS_VERSION:-}" != "" ]; then
+               abi-compliance-checker -l openjpeg -old $(find ./abi_dump/openjpeg/$OPJ_PREVIOUS_VERSION -name '*.dump') -new $(find ./abi_dump/openjpeg/$OPJ_LATEST_VERSION -name '*.dump') -header openjpeg.h -abi -s || EXIT_CODE=1
+       fi
 else
        echo "Disable ABI check for now, problems with symbol visibility..."
 fi