File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,28 @@ jobs:
14
14
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
15
15
# command: sudo chmod +x ./gradlew
16
16
- run :
17
- name : Install bundle
17
+ name : Setup
18
18
command : |
19
19
gem install bundler
20
20
bundle install
21
+ mkdir ~/code/reports
22
+
23
+ # Detekt
21
24
- run :
22
25
name : Detekt
23
26
command : fastlane detekt
24
27
- store_artifacts : # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
25
28
path : reports/detekt
26
29
- store_test_results : # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
27
- path : reports/tests
30
+ path : reports
31
+
32
+ # Tests
33
+ - run :
34
+ name : Tests
35
+ command : fastlane test_all
36
+ - store_artifacts : # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/
37
+ path : build/reports/tests
38
+ - store_test_results : # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/
39
+ path : reports
40
+
28
41
# See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples
Original file line number Diff line number Diff line change @@ -46,6 +46,6 @@ platform :android do
46
46
end
47
47
48
48
def run_all_tests
49
- gradle ( task : "test --continue" )
49
+ gradle ( task : "clean test --continue" )
50
50
end
51
51
end
Original file line number Diff line number Diff line change
1
+ apply plugin : " de.mannodermaus.android-junit5"
1
2
apply from : " $rootProject . projectDir /scripts/detekt.gradle"
2
3
apply from : " $rootProject . projectDir /scripts/dokka.gradle"
3
4
@@ -13,4 +14,6 @@ dependencies {
13
14
testImplementation testLibraries. jUnitApi
14
15
testImplementation testLibraries. mockk
15
16
testImplementation testLibraries. kluent
17
+
18
+ testRuntimeOnly testLibraries. jUnitEngine
16
19
}
Original file line number Diff line number Diff line change @@ -9,4 +9,8 @@ android {
9
9
sourceCompatibility JavaVersion . VERSION_1_8
10
10
targetCompatibility JavaVersion . VERSION_1_8
11
11
}
12
+
13
+ kotlinOptions {
14
+ jvmTarget = ' 1.8'
15
+ }
12
16
}
You can’t perform that action at this time.
0 commit comments