summaryrefslogtreecommitdiff
path: root/tools/travis-ci/abi-check.sh
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-09-10 16:05:04 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-09-12 11:18:14 +0200
commit3d582dd8856bd9c8e3243407b61690263ed2ee48 (patch)
treec3045fe7f15163a0e04b72ce66d64afc88cfc7de /tools/travis-ci/abi-check.sh
parent0c1962669858b1d67a6b8851ae0e8c4123a1c282 (diff)
Add github action workflows CI
Diffstat (limited to 'tools/travis-ci/abi-check.sh')
-rwxr-xr-xtools/travis-ci/abi-check.sh17
1 files changed, 14 insertions, 3 deletions
diff --git a/tools/travis-ci/abi-check.sh b/tools/travis-ci/abi-check.sh
index 21ad9dc8..cf47da8f 100755
--- a/tools/travis-ci/abi-check.sh
+++ b/tools/travis-ci/abi-check.sh
@@ -35,7 +35,18 @@ OPJ_REPO="https://github.com/uclouvain/openjpeg.git"
OPJ_SSH_REPO=${OPJ_REPO/https:\/\/github.com\//git@github.com:}
OPJ_UPLOAD_BRANCH="gh-pages"
OPJ_UPLOAD_DIR="abi-check"
-if [ "${TRAVIS_REPO_SLUG:-}" != "" ]; then
+OPJ_SOURCE_DIR=$(cd $(dirname $0)/../.. && pwd)
+
+if [ "${GITHUB_REPOSITORY:-}" != "" ]; then
+ BRANCH=$(git -C ${OPJ_SOURCE_DIR} branch | grep '*' | tr -d '*[[:blank:]]')
+ if [ "$(echo "${GITHUB_REPOSITORY}" | sed 's/\(^.*\)\/.*/\1/')" == "uclouvain" ] && [ "${GITHUB_EVENT_NAME:-}" != "pull_request" ] && [ "$BRANCH" == "master" ]; then
+ # Upload updated report to gh-pages
+ echo "FIXME. We aren't yet ready to upload ABI report due to lack of keys to push to the gh-pages branch"
+ # OPJ_UPLOAD_ABI_REPORT=1
+ # Build full report
+ #OPJ_LIMIT_ABI_BUILDS=
+ fi
+elif [ "${TRAVIS_REPO_SLUG:-}" != "" ]; then
if [ "$(echo "${TRAVIS_REPO_SLUG}" | sed 's/\(^.*\)\/.*/\1/')" == "uclouvain" ] && [ "${TRAVIS_PULL_REQUEST:-}" == "false" ] && [ "${TRAVIS_BRANCH:-}" == "master" ]; then
# Upload updated report to gh-pages
OPJ_UPLOAD_ABI_REPORT=1
@@ -44,8 +55,6 @@ if [ "${TRAVIS_REPO_SLUG:-}" != "" ]; then
fi
fi
-OPJ_SOURCE_DIR=$(cd $(dirname $0)/../.. && pwd)
-
# INSTALL REQUIRED PACKAGES
mkdir ${HOME}/abi-check
@@ -94,7 +103,9 @@ else
grep -v Configure ${OPJ_SOURCE_DIR}/tools/abi-tracker/openjpeg.json > ./openjpeg.json
fi
cp -rf ${OPJ_SOURCE_DIR} src/openjpeg/current
+rm -f src/openjpeg/current/build/CMakeCache.txt
abi-monitor -v current -build openjpeg.json
+cat build_logs/openjpeg/current/make
rm -rf ./installed/openjpeg/${OPJ_LATEST_VERSION}
rm -rf ./compat_report/openjpeg/${OPJ_LATEST_VERSION}