Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
test for dangerfile ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
wrmswindmill committed Jul 22, 2019
1 parent 9907c91 commit d0407b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ matrix:
components:
- android-26
- extra-android-m2repository

- env: FORMAT_CODE=true
language: ruby

cache:
directories:
Expand Down Expand Up @@ -96,6 +99,12 @@ install:
cd ../../
fi
before_script:
- |
if [[ ("FORMAT_CODE" = "true" )]]; then
bundle exec danger
fi
script:
- |
case $TEST_SUITE in
Expand Down
2 changes: 2 additions & 0 deletions Dangerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
message("Hello, this worked")
code_style_validation.check file_extensions: ['.cc', '.cpp', '.m', 'mm', '.h', '.java']
4 changes: 0 additions & 4 deletions dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,10 +476,6 @@ function findBlameReviewers(fileToDeletedLinesMap, fileToNormalLinesMap, fileToB
message("According to the blame info, we recommended " + names.join(' , ') + " to be the reviewers.")
}
}

// code format using danger-code_style_validation based on clang-format
code_style_validation.check file_extensions: ['.hpp', '.cpp', '.m' , '.h', 'mm', '.cc', '.java']

message('danger test finished.')
/*
* find reviewer end
Expand Down

0 comments on commit d0407b9

Please sign in to comment.