@@ -10,27 +10,57 @@ definitions:
10
10
name : Run detekt static code analysis
11
11
script : ./gradlew detekt
12
12
ignore_failure : true
13
- - &unit-test
13
+ - &detekt_on_template_compose
14
+ name : Run detekt on template-compose
15
+ working_directory : ./template-compose
16
+ script : *detekt
17
+ - &detekt_on_template_xml
18
+ name : Run detekt on template-xml
19
+ working_directory : ./template-xml
20
+ script : *detekt
21
+ - &unit_test
14
22
name : Run unit tests and generate coverage report using Kover
15
23
script : ./gradlew koverMergedReport
16
- artifacts : &artifacts
17
- artifacts :
18
- - app/build/reports/jacoco/jacocoTestReport/
24
+ - &unit_test_on_template_compose
25
+ name : Run unit tests on template-compose
26
+ working_directory : ./template-compose
27
+ script : *unit_test
28
+ - &unit_test_on_template_xml
29
+ name : Run unit tests on template-xml
30
+ working_directory : ./template-xml
31
+ script : *unit_test
32
+ artifacts :
33
+ - &artifacts_template_compose template-compose/build/reports/kover/merged/
34
+ - &artifacts_template_xml template-xml/build/reports/kover/merged/
19
35
workflows :
20
- unit-test-on-pr :
21
- name : Unit test on PR
36
+ unit-test-on-pr-for-template-compose :
37
+ name : Unit test on PR for template-compose
22
38
<< : *configure_environment
23
39
triggering :
24
40
events :
25
41
- pull_request
26
42
cancel_previous_builds : true
27
43
scripts :
28
- - *detekt
29
- - *unit-test
30
- << : *artifacts
44
+ - *detekt_on_template_compose
45
+ - *unit_test_on_template_compose
46
+ artifacts :
47
+ - *artifacts_template_compose
31
48
32
- unit-test-on-push :
33
- name : Unit test on push
49
+ unit-test-on-pr-for-template-xml :
50
+ name : Unit test on PR for template-xml
51
+ << : *configure_environment
52
+ triggering :
53
+ events :
54
+ - pull_request
55
+ cancel_previous_builds : true
56
+ scripts :
57
+ - *detekt_on_template_xml
58
+ - *unit_test_on_template_xml
59
+ artifacts :
60
+ - *artifacts_template_xml
61
+
62
+ unit-test-on-push-for-template-compose :
63
+ name : Unit test on push for template-compose
34
64
<< : *configure_environment
35
65
triggering :
36
66
events :
@@ -47,6 +77,30 @@ workflows:
47
77
include : false
48
78
cancel_previous_builds : true
49
79
scripts :
50
- - *detekt
51
- - *unit-test
52
- << : *artifacts
80
+ - *detekt_on_template_compose
81
+ - *unit_test_on_template_compose
82
+ artifacts :
83
+ - *artifacts_template_compose
84
+
85
+ unit-test-on-push-for-template-xml :
86
+ name : Unit test on push for template-xml
87
+ << : *configure_environment
88
+ triggering :
89
+ events :
90
+ - push
91
+ branch_patterns :
92
+ - pattern : ' *'
93
+ - pattern : develop
94
+ include : false
95
+ - pattern : ' release/**'
96
+ include : false
97
+ - pattern : ' hotfix/**'
98
+ include : false
99
+ - pattern : master
100
+ include : false
101
+ cancel_previous_builds : true
102
+ scripts :
103
+ - *detekt_on_template_xml
104
+ - *unit_test_on_template_xml
105
+ artifacts :
106
+ - *artifacts_template_xml
0 commit comments