Skip to content

Commit

Permalink
Use custom script to run Pronto only in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Flink committed Nov 7, 2014
1 parent 36847f2 commit 321866e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Expand Up @@ -5,6 +5,4 @@ before_install:
- gem update --system
services:
- redis-server
script:
- 'export PULL_REQUEST_ID=${TRAVIS_PULL_REQUEST} && bundle exec pronto run -f github_pr -c develop'
- bundle exec rake
script: ./scripts/run-tests.sh
7 changes: 7 additions & 0 deletions scripts/run-tests.sh
@@ -0,0 +1,7 @@
#!/bin/bash
set -ev
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
export PULL_REQUEST_ID=${TRAVIS_PULL_REQUEST}
bundle exec pronto run -f github_pr -c develop
fi
bundle exec rake

0 comments on commit 321866e

Please sign in to comment.