diff options
author | Ivan Vucica <ivucica@google.com> | 2016-07-11 16:17:59 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2016-07-12 11:17:32 +0000 |
commit | 633e48a4ce8747575b156639608ee18afe4b386e (patch) | |
tree | 698f92627522d6b0c27399983699e83fe82f0c1d /scripts/ci/ci.sh | |
parent | 74dce9f574eca9f7e4e494a39d7c392e05b8f562 (diff) |
scripts/ci/ci.sh: Prefer COMMIT_RANGE from the environment, if defined.
This should let the users wrap around ci.sh if they want to use the instructions from
the comments (those related to Gerrit and Travis-CI), as opposed to having to edit the
script.
--
MOS_MIGRATED_REVID=127093626
Diffstat (limited to 'scripts/ci/ci.sh')
-rwxr-xr-x | scripts/ci/ci.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ci/ci.sh b/scripts/ci/ci.sh index 4de04cbe05..e25f8d5109 100755 --- a/scripts/ci/ci.sh +++ b/scripts/ci/ci.sh @@ -42,7 +42,7 @@ # When running in Travis-CI, you can directly use the $TRAVIS_COMMIT_RANGE # environment variable. -COMMIT_RANGE=$(git merge-base origin/master HEAD)".." +COMMIT_RANGE=${COMMIT_RANGE:-$(git merge-base origin/master HEAD)".."} # Go to the root of the repo cd "$(git rev-parse --show-toplevel)" |