travis: Run byte code comparison only if current travis job is a pull request (not a push-build).

This commit is contained in:
Christian Parpart 2020-02-03 11:55:26 +01:00
parent b6190e06a5
commit 1b310a93a2

View File

@ -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