burrito-brothers / shiba

Catch bad SQL queries before they cause problems in production
https://shiba-sql.com
Other
292 stars 14 forks source link

Attempt to pull commit SHA from alternative Travis ENV #33

Closed lloydwatkin closed 5 years ago

lloydwatkin commented 5 years ago

If the test run on Travis-CI is not directly from a pull request then shiba will fail to find the branch commit hash. Therefore we also inspect ENV['TRAVIS_COMMIT'] in order to determine the git commit to test.

Fixes #32

eac commented 5 years ago

Thanks for the contribution!