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

Commit 454eb53

Browse files
authored
Merge pull request #15 from studyplus/update_circleci_config
Modify path where search bundle cache
2 parents 4ae504a + ac7e9c2 commit 454eb53

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.circleci/config.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2.1
22
executors:
33
default:
44
docker:
5-
- image: circleci/android:api-28
5+
- image: circleci/android:api-27
66
environment:
77
JAVA_OPTS: -Xmx3200m
88

@@ -22,7 +22,7 @@ commands:
2222
steps:
2323
- run:
2424
name: Run Tests
25-
command: ./gradlew lint test
25+
command: ./gradlew studyplus-android-sdk2:lint studyplus-android-sdk2:test
2626
- store_artifacts:
2727
path: studyplus-android-sdk2/build/reports
2828
destination: reports
@@ -35,7 +35,7 @@ commands:
3535
key: v1-danger-cache-{{ checksum "Gemfile.lock" }}
3636
- run:
3737
name: Bundle install for Danger and fastlane
38-
command: bundle check || bundle install --path vendor/bundle --clean
38+
command: bundle check --path vendor/bundle || bundle install --jobs=4 --retry=3 --path vendor/bundle --clean
3939
- save_cache:
4040
paths:
4141
- vendor/bundle
@@ -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)