Skip to content
This repository was archived by the owner on Jun 28, 2019. It is now read-only.

Commit ac7e9c2

Browse files
committed
Set lint step for danger
1 parent 56d49d6 commit ac7e9c2

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.circleci/config.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,24 @@ commands:
4747
command: bundle exec danger
4848

4949
jobs:
50-
run_test:
50+
unit_test:
5151
executor:
5252
name: default
5353
steps:
5454
- checkout
5555
- setup_android
5656
- unit_test
57-
run_danger:
57+
check_pr:
5858
executor:
5959
name: default
6060
steps:
6161
- checkout
62+
- setup_android
6263
- setup_bundle
6364
- run_danger
6465

6566
workflows:
6667
pull_request:
6768
jobs:
68-
- run_test
69-
- run_danger
69+
- unit_test
70+
- check_pr

Dangerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ warn("A pull request must have some assignees") if github.pr_json["assignee"].ni
2929
#
3030
####
3131
android_lint.gradle_task = "studyplus-android-sdk2:lint"
32-
android_lint.report_file = "studyplus-android-sdk2/build/reports/lint/lint-result.xml"
32+
android_lint.report_file = "studyplus-android-sdk2/build/reports/lint-results.xml"
3333
android_lint.filtering = true
3434
android_lint.lint(inline_mode: true)

studyplus-android-sdk2/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ android {
6666
includeAndroidResources = true
6767
}
6868
}
69+
70+
lintOptions {
71+
abortOnError false
72+
}
6973
}
7074

7175
dependencies {

0 commit comments

Comments
 (0)