update abi-check

This commit is contained in:
Antonin Descampe 2016-09-29 22:19:43 +02:00
parent 9a9bc8fa60
commit a972501658
2 changed files with 10 additions and 6 deletions

View File

@ -24,7 +24,7 @@
{ {
"Number": "2.1.2", "Number": "2.1.2",
"Installed": "installed/openjpeg/2.1.2", "Installed": "installed/openjpeg/2.1.2",
"Source": "src/openjpeg/2.1.2/v2.1.2.tar.gz", "Source": "src/openjpeg/2.1.2/version.-2.1.2.tar.gz",
"Changelog": "CHANGELOG.md", "Changelog": "CHANGELOG.md",
"HeadersDiff": "On", "HeadersDiff": "On",
"PkgDiff": "Off", "PkgDiff": "Off",
@ -36,7 +36,7 @@
{ {
"Number": "2.1.1", "Number": "2.1.1",
"Installed": "installed/openjpeg/2.1.1", "Installed": "installed/openjpeg/2.1.1",
"Source": "src/openjpeg/2.1.1/v2.1.1.tar.gz", "Source": "src/openjpeg/2.1.1/version.-2.1.1.tar.gz",
"Changelog": "CHANGELOG.md", "Changelog": "CHANGELOG.md",
"HeadersDiff": "On", "HeadersDiff": "On",
"PkgDiff": "Off", "PkgDiff": "Off",

View File

@ -14,7 +14,7 @@ if [ "${OPJ_CI_ABI_CHECK:-}" != "1" ]; then
fi fi
OPJ_UPLOAD_ABI_REPORT=0 OPJ_UPLOAD_ABI_REPORT=0
#OPJ_PREVIOUS_VERSION="2.1" #OPJ_PREVIOUS_VERSION="2.1.1"
OPJ_LATEST_VERSION="2.1.2" OPJ_LATEST_VERSION="2.1.2"
if [ "${OPJ_PREVIOUS_VERSION:-}" != "" ]; then if [ "${OPJ_PREVIOUS_VERSION:-}" != "" ]; then
OPJ_LIMIT_ABI_BUILDS="-limit 3" OPJ_LIMIT_ABI_BUILDS="-limit 3"
@ -26,7 +26,7 @@ OPJ_SSH_REPO=${OPJ_REPO/https:\/\/github.com\//git@github.com:}
OPJ_UPLOAD_BRANCH="gh-pages" OPJ_UPLOAD_BRANCH="gh-pages"
OPJ_UPLOAD_DIR="abi-check" OPJ_UPLOAD_DIR="abi-check"
if [ "${TRAVIS_REPO_SLUG:-}" != "" ]; then if [ "${TRAVIS_REPO_SLUG:-}" != "" ]; then
if [ "$(echo "${TRAVIS_REPO_SLUG}" | sed 's/\(^.*\)\/.*/\1/')" == "uclouvain" ] && [ "${TRAVIS_PULL_REQUEST:-}" == "false" ]; then if [ "$(echo "${TRAVIS_REPO_SLUG}" | sed 's/\(^.*\)\/.*/\1/')" == "uclouvain" ] && [ "${TRAVIS_PULL_REQUEST:-}" == "false" ] && [ "${TRAVIS_BRANCH:-}" == "master" ]; then
# Upload updated report to gh-pages # Upload updated report to gh-pages
OPJ_UPLOAD_ABI_REPORT=1 OPJ_UPLOAD_ABI_REPORT=1
# Build full report # Build full report
@ -71,7 +71,7 @@ rm -rf installed/openjpeg/current/*
# Let's create all we need # Let's create all we need
grep -v Git ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json > ./openjpeg.json grep -v Git ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json > ./openjpeg.json
#abi-monitor ${OPJ_LIMIT_ABI_BUILDS} -get openjpeg.json abi-monitor ${OPJ_LIMIT_ABI_BUILDS} -get openjpeg.json
if [ "${OPJ_LIMIT_ABI_BUILDS}" != "" ]; then if [ "${OPJ_LIMIT_ABI_BUILDS}" != "" ]; then
cp -f ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json ./openjpeg.json cp -f ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json ./openjpeg.json
else else
@ -79,7 +79,11 @@ else
grep -v Configure ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json > ./openjpeg.json grep -v Configure ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json > ./openjpeg.json
fi fi
cp -rf ${OPJ_SOURCE_DIR} src/openjpeg/current cp -rf ${OPJ_SOURCE_DIR} src/openjpeg/current
abi-monitor ${OPJ_LIMIT_ABI_BUILDS} -rebuild openjpeg.json abi-monitor -v current -build openjpeg.json
abi-monitor -v ${OPJ_LATEST_VERSION} -build openjpeg.json
if [ "${OPJ_PREVIOUS_VERSION:-}" != "" ]; then
abi-monitor -v ${OPJ_PREVIOUS_VERSION} -build openjpeg.json
fi
abi-tracker -build openjpeg.json abi-tracker -build openjpeg.json
EXIT_CODE=0 EXIT_CODE=0