Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from unreliable to more stable Travis variable. #9

Merged
merged 1 commit into from
Sep 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ before_install:
before_script:
# Print build info.
- echo $TRAVIS_COMMIT
- echo $TRAVIS_BRANCH
- echo $TRAVIS_TAG
- echo $TRAVIS_BRANCH
- echo $TRAVIS_BUILD_NUMBER
Expand Down
4 changes: 2 additions & 2 deletions check_signed_off.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ esac
if [ -n "$1" ]
then
COMMIT_RANGE="$1"
elif [ -n "$TRAVIS_COMMIT_RANGE" ]
elif [ -n "$TRAVIS_BRANCH" ]
then
COMMIT_RANGE="$TRAVIS_COMMIT_RANGE"
COMMIT_RANGE="$TRAVIS_BRANCH..FETCH_HEAD"
else
# Just check previous commit if nothing else is specified.
COMMIT_RANGE=HEAD~1..HEAD
Expand Down