Commit 01abf988 by Erik Michaels-Ober

Merge pull request #821 from jasonkarns/patch-2

TRAVIS_COMMIT_RANGE is correct now
parents f71dbc94 d5de31f4
...@@ -4,11 +4,6 @@ set -e ...@@ -4,11 +4,6 @@ set -e
STATUS=0 STATUS=0
bats ${CI:+--tap} test || STATUS="$?" 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 if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
./script/mirror update "$TRAVIS_COMMIT_RANGE" ./script/mirror update "$TRAVIS_COMMIT_RANGE"
elif [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ]; then elif [ "${TRAVIS_PULL_REQUEST:-false}" != "false" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment