Add priv/test-for-gh-pr.sh, change TravisCI 'script' to use it
This commit is contained in:
parent
cb67764273
commit
cf9d56e9bf
2 changed files with 11 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
|
||||
|
|
10
priv/test-for-gh-pr.sh
Executable file
10
priv/test-for-gh-pr.sh
Executable 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
|
Loading…
Reference in a new issue