diff --git a/.travis.yml b/.travis.yml index 40363cb..7bb3465 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: erlang notifications: email: scott@basho.com -script: "make test" +script: "priv/test-for-gh-pr.sh" otp_release: - 17.5 diff --git a/priv/test-for-gh-pr.sh b/priv/test-for-gh-pr.sh new file mode 100755 index 0000000..868cf04 --- /dev/null +++ b/priv/test-for-gh-pr.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -x + +if [ "${TRAVIS_PULL_REQUEST}" = "false" ] then + echo '$TRAVIS_PULL_REQUEST is false, skipping tests' + exit 0 +else + make test +fi