-
Notifications
You must be signed in to change notification settings - Fork 5
/
bitrise.yml
101 lines (95 loc) · 2.88 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
96
97
98
99
100
101
---
format_version: '5'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: other
trigger_map:
- push_branch: master
workflow: deploy
- pull_request_target_branch: master
workflow: primary
workflows:
install_flutter_sdk:
steps:
# - [email protected]: {}
title: Install flutter sdk
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
cd ..
git clone -b master https://github.com/flutter/flutter.git
export PATH=`pwd`/flutter/bin:$PATH
envman add --key PATH --value $PATH
if [[ "$OSTYPE" == darwin* ]]; then
brew install --HEAD libimobiledevice
brew install ideviceinstaller
brew install ios-deploy
fi
flutter doctor
echo "Installed flutter to `pwd`/flutter"
echo "flutter.sdk=`pwd`/flutter" >> `pwd`/src/android/local.properties
# - [email protected]:
# inputs:
# - cache_paths: |-
# ../flutter -> ../flutter
primary:
before_run:
- install_flutter_sdk
steps:
# - [email protected]: {}
# - git-clone: {}
title: Build
inputs:
- content: |+
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
echo "--------RELEASE_KEY_ALIAS-------------------------"
echo "RELEASE_KEY_ALIAS"
# write your script here
# flutter clean
# flutter packages get
if [[ "$OSTYPE" == darwin* ]]; then
flutter -v build ios -t lib/application/main_production.dart --no-codesign
else
flutter build apk -t lib/application/main_production.dart --release --flavor production
fi
# - [email protected]:
# inputs:
# - cache_paths: |-
# ~/.pub-cache -> ~/.pub-cache.lock
deploy:
before_run:
- install_flutter_sdk
steps:
# - [email protected]: {}
- git-clone: {}
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
if [[ "$OSTYPE" == darwin* ]]; then
flutter -v build ios -t lib/application/main_production.dart --no-codesign
cd ios
else
flutter build apk -t lib/application/main_production.dart --release --flavor production
cd android
fi
bundle install
bundle exec fastlane dg
title: Deploy to deploygate
# - [email protected]:
# inputs:
# - cache_paths: |-
# ~/.pub-cache -> ~/.pub-cache.lock