Skip to content

Commit 69b3fff

Browse files
PIMOB-2122: Improve CI flow (#230)
1 parent c82d40d commit 69b3fff

File tree

1 file changed

+3
-113
lines changed

1 file changed

+3
-113
lines changed

bitrise.yml

Lines changed: 3 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,8 @@ format_version: '9'
33
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
44
project_type: android
55
trigger_map:
6-
- push_branch: release/4.0.0
7-
workflow: verification-full-extra-lint
86
- push_branch: master
97
workflow: verification-full
10-
- push_branch: "*"
11-
workflow: verification-quick
12-
- pull_request_source_branch: "*"
13-
pull_request_target_branch: release/4.0.0
14-
workflow: verification-full-extra-lint
158
- pull_request_source_branch: "*"
169
workflow: verification-full
1710
workflows:
@@ -69,113 +62,10 @@ workflows:
6962
7063
The following checks are performed
7164
- Build
72-
- Lint Checks
73-
- Unit Tests
74-
- Instrumentation Tests
75-
before_run:
76-
- steps-start
77-
verification-full-extra-lint:
78-
steps:
79-
- android-lint@0:
80-
inputs:
81-
- variant: "$VARIANT"
82-
is_always_run: true
83-
- android-unit-test@1:
84-
inputs:
85-
- project_location: "$PROJECT_LOCATION"
86-
- variant: "$VARIANT"
87-
is_always_run: true
88-
- gradle-runner@2:
89-
inputs:
90-
- gradle_task: assembleAndroidTest
91-
is_always_run: true
92-
title: Gradle Runner - Build Android Test
93-
- script@1:
94-
title: Lint
95-
inputs:
96-
- content: |-
97-
#!/usr/bin/env bash
98-
# fail if any commands fails
99-
set -e
100-
# make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully
101-
set -o pipefail
102-
# debug log
103-
set -x
104-
105-
# write your script here
106-
./gradlew clean lint
107-
108-
# or run a script from your repository, like:
109-
# bash ./path/to/script.sh
110-
# not just bash, e.g.:
111-
# ruby ./path/to/script.rb
112-
- script@1:
113-
title: Detekt
114-
inputs:
115-
- content: |-
116-
#!/usr/bin/env bash
117-
# fail if any commands fails
118-
set -e
119-
# make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully
120-
set -o pipefail
121-
# debug log
122-
set -x
123-
124-
# write your script here
125-
./gradlew detekt
126-
127-
# or run a script from your repository, like:
128-
# bash ./path/to/script.sh
129-
# not just bash, e.g.:
130-
# ruby ./path/to/script.rb
131-
- script@1:
132-
title: Ktlint
133-
inputs:
134-
- content: |-
135-
#!/usr/bin/env bash
136-
# fail if any commands fails
137-
set -e
138-
# make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully
139-
set -o pipefail
140-
# debug log
141-
set -x
142-
143-
# write your script here
144-
./gradlew ktlint
145-
146-
# or run a script from your repository, like:
147-
# bash ./path/to/script.sh
148-
# not just bash, e.g.:
149-
# ruby ./path/to/script.rb
150-
after_run:
151-
- steps-finish
152-
description: |2-
153-
154-
## Performs all validation checks
155-
156-
The following checks are performed
157-
- Build
158-
- Lint Checks
159-
- Unit Tests
160-
- Instrumentation Tests
161-
before_run:
162-
- steps-start
163-
verification-quick:
164-
steps:
165-
- android-unit-test@1:
166-
inputs:
167-
- project_location: "$PROJECT_LOCATION"
168-
- variant: "$VARIANT"
169-
is_always_run: true
170-
after_run:
171-
- steps-finish
172-
description: |2-
173-
174-
## Performs validation checks to match the current implementation on CircelCi
175-
176-
The following checks are performed
177-
- Build
65+
- Lint Checks (if PR is ready for review)
17866
- Unit Tests
67+
- Instrumentation Tests (if PR is ready for review)
68+
- SonarQube Analysis (if PR is ready for review)
17969
before_run:
18070
- steps-start
18171
steps-sonar:

0 commit comments

Comments
 (0)