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..55f8a8d --- /dev/null +++ b/priv/test-for-gh-pr.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then + echo '$TRAVIS_PULL_REQUEST is false, skipping tests' + exit 0 +else + echo '$TRAVIS_PULL_REQUEST is not false, running tests' + make test +fi