Codebase list i3-gaps / 6a2b3a6f-3889-47b0-9491-b7d0979eabd0/upstream travis / skip-pkg.sh
6a2b3a6f-3889-47b0-9491-b7d0979eabd0/upstream

Tree @6a2b3a6f-3889-47b0-9491-b7d0979eabd0/upstream (Download .tar.gz)

skip-pkg.sh @6a2b3a6f-3889-47b0-9491-b7d0979eabd0/upstreamraw · history · blame

#!/bin/sh
# Returns true if Debian/Ubuntu packages should be skipped because this CI run
# was triggered by a pull request.

# Verify BINTRAY_USER is present (only set on github.com/i3/i3),
# otherwise the CI run was triggered by a pull request.
# Verify CC=gcc so that we only build packages once for each commit,
# not twice (with gcc and clang).
if [ ! -z "$BINTRAY_USER" ] && [ "$CC" = "gcc" ]
then
	exit 1
fi

exit 0