-
Notifications
You must be signed in to change notification settings - Fork 13
/
circleci-basic.yml
61 lines (55 loc) · 1.23 KB
/
circleci-basic.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
executors:
android:
docker:
- image: cimg/android:2022.06
default:
docker:
- image: cimg/base:stable
macos:
macos:
xcode: 14.2.0
jobs:
build-android:
executor: android
steps:
- checkout
- flutter-orb/install_sdk_and_pub:
flutter_version: 3.7.5
- run:
name: Build APK
command: flutter build apk --flavor=dev -t lib/app/main_dev.dart
- store_artifacts:
path: build/app/outputs/flutter-apk/
build-ios:
executor: macos
steps:
- checkout
- flutter-orb/install_sdk_and_pub:
flutter_version: 3.7.5
- run:
name: Build IPA
command: flutter build ios --no-codesign --flavor=dev -t lib/app/main_dev.dart
- store_artifacts:
path: build/ios/iphoneos/
tests:
executor: android
steps:
- checkout
- flutter-orb/install_sdk_and_pub:
flutter_version: 3.7.5
- run:
name: Run unit test
command: flutter test
orbs:
flutter-orb: circleci/flutter@1.1.0
version: 2.1
workflows:
main:
jobs:
- tests
- build-android:
requires:
- tests
- build-ios:
requires:
- tests