add Danger step to Travis + Danger configuration

This commit is contained in:
Jim Witschey
2017-05-26 15:35:50 -04:00
parent dc198f7ddb
commit 97de450abd
2 changed files with 9 additions and 0 deletions

View File

@@ -22,7 +22,9 @@ addons:
install:
- pip install tox-travis
- gem install danger --version '~> 5.0'
script:
- tox
- tox -e patched_loops
- danger

7
Dangerfile Normal file
View File

@@ -0,0 +1,7 @@
# Lovingly stolen from https://github.com/realm/jazzy/blob/master/Dangerfile
has_app_changes = !git.modified_files.grep(/cassandra/).empty?
if !git.modified_files.include?("CHANGELOG.rst") && has_app_changes
fail "You've modified application code. " +
"Unless this is strictly a refactoring, please include a CHANGELOG entry."
end