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:
commit
f04e7f7132
2 changed files with 10 additions and 1 deletions
|
@ -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
9
priv/test-for-gh-pr.sh
Executable 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
|
Loading…
Reference in a new issue