forked from stripe/stripe-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitrise.yml
More file actions
101 lines (98 loc) · 3.09 KB
/
Copy pathbitrise.yml
File metadata and controls
101 lines (98 loc) · 3.09 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
92
93
94
95
96
97
98
99
100
101
---
format_version: '11'
default_step_lib_source: 'https://github.com/bitrise-io/bitrise-steplib.git'
project_type: android
trigger_map:
- push_branch: 'master'
pipeline: main-trigger-pipeline
- pull_request_source_branch: '*'
pipeline: main-trigger-pipeline
app:
envs:
- GRADLE_OPTS: -Dkotlin.incremental=false
pipelines:
main-trigger-pipeline:
stages:
- stage-trigger-run-all: {}
stages:
stage-trigger-run-all:
workflows:
- check: {}
- test: {}
- run-instrumentation-tests: {}
workflows:
check:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- cache-pull@2: {}
- script@1:
title: Restore gradle.properties
inputs:
- content: mkdir -p ~/.gradle ; cp .bitrise/ci-gradle.properties ~/.gradle/gradle.properties
- script@1:
inputs:
- content: ./gradlew ktlint detekt lintRelease apiCheck
- cache-push@2: {}
test:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- cache-pull@2: {}
- script@1:
title: Restore gradle.properties
inputs:
- content: mkdir -p ~/.gradle ; cp .bitrise/ci-gradle.properties ~/.gradle/gradle.properties
- script@1:
inputs:
- content: ./gradlew testDebugUnitTest verifyPaparazziDebug -x :stripe-test-e2e:testDebugUnitTest
- cache-push@2: {}
maestro-financial-connections:
steps:
- avd-manager@1: {}
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@7.0: {}
- cache-pull@2: {}
- script@1:
title: Restore gradle.properties
inputs:
- content: mkdir -p ~/.gradle ; cp .bitrise/ci-gradle.properties ~/.gradle/gradle.properties
- wait-for-android-emulator@1: {}
- script-runner@0:
title: Execute Maestro tests
inputs:
- file_path: ./scripts/execute_maestro_tests.sh
- slack@3:
is_always_run: true
inputs:
- webhook_url: $WEBHOOK_SLACK_CARLOSMUVI_MAESTRO
- webhook_url_on_error: $WEBHOOK_SLACK_CARLOSMUVI_MAESTRO
- custom-test-results-export@0:
inputs:
- search_pattern: '*/maestroReport.xml'
- test_name: Maestro tests
- deploy-to-bitrise-io@2: {}
- cache-push@2: {}
run-instrumentation-tests:
steps:
- avd-manager@1: { }
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@7.0: { }
- cache-pull@2: { }
- script@1:
inputs:
- content: mkdir -p ~/.gradle ; cp .bitrise/ci-gradle.properties ~/.gradle/gradle.properties
- wait-for-android-emulator@1: { }
- script-runner@0:
title: Execute instrumentation tests
inputs:
- file_path: ./scripts/execute_instrumentation_tests.sh
- cache-push@2: { }
meta:
bitrise.io:
stack: linux-docker-android-20.04
machine_type_id: elite