Merge pull request #16 from basho/slf/travis-ci2

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:33:08 +09:00
commit f04e7f7132
2 changed files with 10 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

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

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