Ensure TRAVIS_COMMIT set correctly in PRs

Refs travis-ci/travis-ci#2666
This commit is contained in:
Josh Hagins
2015-12-28 07:29:26 -05:00
parent 46a69bba54
commit 39b7bb1404
+2
View File
@@ -24,6 +24,8 @@ matrix:
# * update Homebrew
# * informational feedback
before_install:
- export TRAVIS_COMMIT=$(git rev-parse --verify -q HEAD)
- env | grep TRAVIS_
- rvm use system
- export PATH="/System/Library/Frameworks/Ruby.framework/Versions/${CASK_RUBY_TEST_VERSION}/usr/bin":"$PATH"
- brew update