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

add danger #62

Merged
merged 1 commit into from Jul 3, 2017
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -64,3 +64,6 @@ crashlytics-build.properties
fabric.properties

google-services.json

/.bundle/
/vendor/bundle
16 changes: 16 additions & 0 deletions Dangerfile
@@ -0,0 +1,16 @@
# github comment settings
github.dismiss_out_of_range_messages

# for PR
if github.pr_title.include? "[WIP]" || github.pr_labels.include?("WIP")
warn("PR is classed as Work in Progress")
end

# Warn when there is a big PR
warn("a large PR") if git.lines_of_code > 300

# Warn when PR has no milestone
warn("A pull request must have a milestone set") if github.pr_json["milestone"].nil?

# Warn when PR has no assignees
warn("A pull request must have some assignees") if github.pr_json["assignee"].nil?
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"

gem 'danger'
51 changes: 51 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,51 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.1)
public_suffix (~> 2.0, >= 2.0.2)
claide (1.0.2)
claide-plugins (0.9.2)
cork
nap
open4 (~> 1.3)
colored2 (3.1.2)
cork (0.3.0)
colored2 (~> 3.1)
danger (5.3.2)
claide (~> 1.0)
claide-plugins (>= 0.9.2)
colored2 (~> 3.1)
cork (~> 0.1)
faraday (~> 0.9)
faraday-http-cache (~> 1.0)
git (~> 1)
kramdown (~> 1.5)
octokit (~> 4.2)
terminal-table (~> 1)
faraday (0.12.1)
multipart-post (>= 1.2, < 3)
faraday-http-cache (1.3.1)
faraday (~> 0.8)
git (1.3.0)
kramdown (1.14.0)
multipart-post (2.0.0)
nap (1.1.0)
octokit (4.7.0)
sawyer (~> 0.8.0, >= 0.5.3)
open4 (1.3.4)
public_suffix (2.0.5)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.3.0)

PLATFORMS
ruby

DEPENDENCIES
danger

BUNDLED WITH
1.15.1
3 changes: 3 additions & 0 deletions circle.yml
@@ -1,6 +1,8 @@
machine:
java:
version: oraclejdk8
ruby:
version: ruby-2.4.1
timezone: Asia/Tokyo
environment:
TERM: "dumb"
Expand All @@ -14,6 +16,7 @@ test:
pre:
- openssl aes-256-cbc -k $DECRYPT_KEY -d -in app/encrypted_google-services.json -out app/google-services.json
override:
- bundle exec danger
- ./gradlew :app:checkLicenses
- ./gradlew :app:assembleDebug
deployment:
Expand Down