-
Notifications
You must be signed in to change notification settings - Fork 13
/
bitrise.yml
95 lines (88 loc) · 2.53 KB
/
bitrise.yml
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
---
aliases:
- &start_wrapper_builds
build-router-start:
inputs:
- access_token: "${BITRISE_ACCESS_TOKEN}"
- environment_key_list: |-
API_TOKEN
WORKFLOW_ID
- workflows: |-
test-and-build
- &set_java_version
set-java-version@1:
inputs:
- set_java_version: "17"
- &create_dot_env_file
script@1:
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
./scripts/setup_env.sh
format_version: "11"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: flutter
workflows:
test-and-build:
envs:
- BITRISE_FLUTTER_PROJECT_LOCATION: example/
steps:
- *set_java_version
- *create_dot_env_file
- certificate-and-profile-installer@1: {}
- flutter-installer@0: {}
- cache-pull@2: {}
- script@1:
title: Dart format
inputs:
- content: dart format ./ --line-length 120 --fix --set-exit-if-changed
- flutter-analyze@0: {}
- script@1:
title: Dart Analyze
inputs:
- content: dart pub publish --dry-run
- script@1:
title: Reactivate JunitReport
inputs:
- content: flutter pub global activate junitreport
- flutter-test@1:
inputs:
- generate_code_coverage_files: "yes"
- flutter-build@0:
inputs:
- project_location: example/
- additional_build_params: "--build-number=$BITRISE_BUILD_NUMBER"
- is_debug_mode: "true"
- xcode-archive@5:
title: Build Example App
inputs:
- project_path: example/ios/Runner.xcworkspace
- scheme: Runner
- distribution_method: enterprise
- output_tool: xcpretty
- export-xcarchive:
title: Export app-store IPA
inputs:
- archive_path: $BITRISE_XCARCHIVE_PATH
- export_method: enterprise
- cache-push@2: {}
- deploy-to-bitrise-io@2: {}
Applause-Build:
envs:
- API_TOKEN: "${APPLAUSE_API_TOKEN}"
- WORKFLOW_ID: "${APPLAUSE_WORKFLOW_ID}"
steps:
- *start_wrapper_builds
Dogfooding-Build:
envs:
- API_TOKEN: "${DOGFOODING_API_TOKEN}"
- WORKFLOW_ID: "${DOGFOODING_WORKFLOW_ID}"
steps:
- *start_wrapper_builds
Internal-Testing-Build:
envs:
- API_TOKEN: "${SDK_TESTS_API_TOKEN}"
- WORKFLOW_ID: "${SDK_TESTS_WORKFLOW_ID}"
steps:
- *start_wrapper_builds