This repository was archived by the owner on Jun 28, 2019. It is now read-only.
File tree 5 files changed +148
-1
lines changed
5 files changed +148
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,23 @@ commands:
29
29
- store_test_results :
30
30
path : studyplus-android-sdk2/build/test-results
31
31
32
+ setup_bundle :
33
+ steps :
34
+ - restore_cache :
35
+ key : v1-danger-cache-{{ checksum "Gemfile.lock" }}
36
+ - run :
37
+ name : Bundle install for Danger and fastlane
38
+ command : bundle check || bundle install --path vendor/bundle --clean
39
+ - save_cache :
40
+ paths :
41
+ - vendor/bundle
42
+ key : v1-danger-cache-{{ checksum "Gemfile.lock" }}
43
+ run_danger :
44
+ steps :
45
+ - run :
46
+ name : Run danger
47
+ command : bundle exec danger
48
+
32
49
jobs :
33
50
run_test :
34
51
executor :
37
54
- checkout
38
55
- setup
39
56
- unit_test
57
+ run_danger :
58
+ executor :
59
+ name : default
60
+ steps :
61
+ - checkout
62
+ - setup_bundle
63
+ - run_danger
40
64
41
65
workflows :
42
66
test :
43
67
jobs :
44
- - run_test
68
+ - run_test :
69
+ filters :
70
+ branches :
71
+ only :
72
+ - master
73
+ pull_request :
74
+ jobs :
75
+ - run_danger
Original file line number Diff line number Diff line change @@ -54,3 +54,7 @@ captures/
54
54
55
55
# External native build folder generated in Android Studio 2.2 and later
56
56
.externalNativeBuild
57
+
58
+ # Bundle
59
+ .bundle /
60
+ vendor /bundle
Original file line number Diff line number Diff line change
1
+ ####
2
+ #
3
+ # github comment settings
4
+ #
5
+ ####
6
+ github . dismiss_out_of_range_messages
7
+
8
+ ####
9
+ #
10
+ # for PR
11
+ #
12
+ ####
13
+ # Make it more obvious that a PR is a work in progress and shouldn't be merged yet
14
+ warn ( "PR is classed as Work in Progress" ) if github . pr_title . include? "[WIP]"
15
+
16
+ # Warn when there is a big PR
17
+ warn ( "Big PR" ) if git . lines_of_code > 500
18
+
19
+ # Don't let testing shortcuts get into master by accident
20
+ fail ( "fdescribe left in tests" ) if `grep -r fdescribe specs/ ` . length > 1
21
+ fail ( "fit left in tests" ) if `grep -r fit specs/ ` . length > 1
22
+
23
+ # Warn when PR has no assignees
24
+ warn ( "A pull request must have some assignees" ) if github . pr_json [ "assignee" ] . nil?
25
+
26
+ ####
27
+ #
28
+ # Android Lint
29
+ #
30
+ ####
31
+ android_lint . gradle_task = "studyplus-android-sdk2:lint"
32
+ android_lint . report_file = "studyplus-android-sdk2/build/reports/lint/lint-result.xml"
33
+ android_lint . filtering = true
34
+ android_lint . lint ( inline_mode : true )
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ git_source ( :github ) { |repo_name | "https://github.com/#{ repo_name } " }
6
+
7
+ gem "danger"
8
+ gem 'danger-android_lint'
Original file line number Diff line number Diff line change
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ addressable (2.5.2 )
5
+ public_suffix (>= 2.0.2 , < 4.0 )
6
+ ansi (1.5.0 )
7
+ ast (2.4.0 )
8
+ claide (1.0.2 )
9
+ claide-plugins (0.9.2 )
10
+ cork
11
+ nap
12
+ open4 (~> 1.3 )
13
+ colored2 (3.1.2 )
14
+ cork (0.3.0 )
15
+ colored2 (~> 3.1 )
16
+ danger (6.0.6 )
17
+ claide (~> 1.0 )
18
+ claide-plugins (>= 0.9.2 )
19
+ colored2 (~> 3.1 )
20
+ cork (~> 0.1 )
21
+ faraday (~> 0.9 )
22
+ faraday-http-cache (~> 1.0 )
23
+ git (~> 1.5 )
24
+ kramdown (~> 2.0 )
25
+ kramdown-parser-gfm (~> 1.0 )
26
+ no_proxy_fix
27
+ octokit (~> 4.7 )
28
+ terminal-table (~> 1 )
29
+ danger-android_lint (0.0.7 )
30
+ danger-plugin-api (~> 1.0 )
31
+ oga
32
+ danger-plugin-api (1.0.0 )
33
+ danger (> 2.0 )
34
+ faraday (0.15.4 )
35
+ multipart-post (>= 1.2 , < 3 )
36
+ faraday-http-cache (1.3.1 )
37
+ faraday (~> 0.8 )
38
+ git (1.5.0 )
39
+ kramdown (2.1.0 )
40
+ kramdown-parser-gfm (1.0.1 )
41
+ kramdown (~> 2.0 )
42
+ multipart-post (2.0.0 )
43
+ nap (1.1.0 )
44
+ no_proxy_fix (0.1.2 )
45
+ octokit (4.14.0 )
46
+ sawyer (~> 0.8.0 , >= 0.5.3 )
47
+ oga (2.15 )
48
+ ast
49
+ ruby-ll (~> 2.1 )
50
+ open4 (1.3.4 )
51
+ public_suffix (3.0.3 )
52
+ ruby-ll (2.1.2 )
53
+ ansi
54
+ ast
55
+ sawyer (0.8.1 )
56
+ addressable (>= 2.3.5 , < 2.6 )
57
+ faraday (~> 0.8 , < 1.0 )
58
+ terminal-table (1.8.0 )
59
+ unicode-display_width (~> 1.1 , >= 1.1.1 )
60
+ unicode-display_width (1.5.0 )
61
+
62
+ PLATFORMS
63
+ ruby
64
+
65
+ DEPENDENCIES
66
+ danger
67
+ danger-android_lint
68
+
69
+ BUNDLED WITH
70
+ 2.0.1
You can’t perform that action at this time.
0 commit comments