diff --git a/is_travis.sh b/is_travis.sh new file mode 100755 index 00000000..8b5bce62 --- /dev/null +++ b/is_travis.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +# vim:ts=4:sts=4:sw=4:et +# +# Author: Hari Sekhon +# Date: 2016-01-30 11:09:23 +0000 (Sat, 30 Jan 2016) +# +# https://github.com/harisekhon +# +# License: see accompanying Hari Sekhon LICENSE file +# +# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback +# +# http://www.linkedin.com/in/harisekhon +# + +set -euo pipefail +[ -n "${DEBUG:-}" ] && set -x +if [ -n "${TRAVIS:-}" ]; then + exit 0 +else + exit 1 +fi