-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitrise.yml
More file actions
91 lines (90 loc) · 3.08 KB
/
bitrise.yml
File metadata and controls
91 lines (90 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
format_version: '13'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
workflows:
build_apk:
summary: Run your Android unit tests and create an APK file to install your app
on a device or share it with your team.
description: The workflow will first clone your Git repository, install Android
tools, set the project's version code based on the build number, run Android
lint and unit tests, build the project's APK file and save it.
steps:
- git-clone@8: { }
- install-missing-android-tools@3:
inputs:
- gradlew_path: "$PROJECT_LOCATION/gradlew"
- change-android-versioncode-and-versionname@1:
inputs:
- build_gradle_path: "$PROJECT_LOCATION/$MODULE/build.gradle.kts"
- android-lint@0:
inputs:
- project_location: "$PROJECT_LOCATION"
- variant: "$VARIANT"
- cache_level: none
- android-unit-test@1:
inputs:
- project_location: "$PROJECT_LOCATION"
- variant: "$VARIANT"
- cache_level: none
- android-build@1:
inputs:
- project_location: "$PROJECT_LOCATION"
- module: "$MODULE"
- variant: "$VARIANT"
- cache_level: none
- sign-apk@1:
run_if: '{{getenv "BITRISEIO_ANDROID_KEYSTORE_URL" | ne ""}}'
- deploy-to-bitrise-io@2: { }
run_tests:
summary: Run your Android unit tests and get the test report.
description: The workflow will first clone your Git repository, cache your Gradle
dependencies, install Android tools, run your Android unit tests and save the
test report.
steps:
- git-clone@8: { }
- restore-gradle-cache@2: { }
- install-missing-android-tools@3:
inputs:
- gradlew_path: "$PROJECT_LOCATION/gradlew"
- android-lint@0: { }
- android-detekt@0: { }
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully
set -o pipefail
# debug log
set -x
# write your script here
./gradlew koverHtmlReport
cd app/build/reports/kover/html
zip -r kover_report.zip .
mv build/reports/kover/html/kover_report.zip $BITRISE_DEPLOY_DIR/
- save-gradle-cache@1: { }
- deploy-to-bitrise-io@2:
inputs:
- deploy_path: "$BITRISE_DEPLOY_DIR\n"
triggers:
push:
- branch: develop
pull_request:
- source_branch: "*"
meta:
bitrise.io:
stack: osx-xcode-16.2.x
machine_type_id: g2-m1.4core
app:
envs:
- PROJECT_LOCATION: "."
opts:
is_expand: false
- MODULE: app
opts:
is_expand: false
- VARIANT: stagingRelease
opts:
is_expand: false