Skip to content

Commit

Permalink
Merge pull request #821 from jasonkarns/patch-2
Browse files Browse the repository at this point in the history
TRAVIS_COMMIT_RANGE is correct now
  • Loading branch information
sferik committed Nov 4, 2015
2 parents f71dbc9 + d5de31f commit 01abf98
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions script/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ set -e
STATUS=0
bats ${CI:+--tap} test || STATUS="$?"

if [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ] && [ -z "$TRAVIS_COMMIT_RANGE" ]; then
first_sha="$(curl -fsSL https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST}.patch | head -1 | awk '{print $2}')"
export TRAVIS_COMMIT_RANGE="${first_sha}^..${TRAVIS_COMMIT}"
fi

if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
./script/mirror update "$TRAVIS_COMMIT_RANGE"
elif [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ]; then
Expand Down

0 comments on commit 01abf98

Please sign in to comment.