Add priv/test-for-gh-pr.sh, change TravisCI 'script' to use it

This commit is contained in:
Scott Lystig Fritchie 2015-10-16 18:22:23 +09:00
parent cb67764273
commit cf9d56e9bf
2 changed files with 11 additions and 1 deletions

View file

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

10
priv/test-for-gh-pr.sh Executable file
View file

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