From 1b310a93a24fd6a771acb32910f08e82646782d0 Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Mon, 3 Feb 2020 11:55:26 +0100 Subject: [PATCH] travis: Run byte code comparison only if current travis job is a pull request (not a push-build). --- scripts/bytecodecompare/storebytecode.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/bytecodecompare/storebytecode.sh b/scripts/bytecodecompare/storebytecode.sh index c993f0c32..451490e0c 100755 --- a/scripts/bytecodecompare/storebytecode.sh +++ b/scripts/bytecodecompare/storebytecode.sh @@ -27,6 +27,13 @@ set -e +if [[ "${TRAVIS_PULL_REQUEST_BRANCH}" != "" ]]; then + # Variable is set to the branch's name iff current job is a pull request, + # or is set to empty string if it is a push build. + echo "Skipping bytecode comparison." + exit 0 +fi + REPO_ROOT="$(dirname "$0")"/../.. if test -z "$1"; then