forked from MaikuB/flutter_local_notifications
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
62 lines (58 loc) · 1.68 KB
/
.cirrus.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
task:
name: Build Android example app
container:
image: cirrusci/flutter:stable
pub_cache:
folder: ~/.pub-cache
build_script:
- cd flutter_local_notifications/example
- flutter build apk --debug
task:
name: Build iOS example app
osx_instance:
image: catalina-flutter
pub_cache:
folder: ~/.pub-cache
build_script:
- cd flutter_local_notifications/example
- flutter build ios --no-codesign --debug
task:
name: Run platform interface tests
container:
image: cirrusci/flutter:stable
test_script:
- cd flutter_local_notifications_platform_interface
- flutter test
task:
name: Run plugin unit tests
container:
image: cirrusci/flutter:stable
pub_cache:
folder: ~/.pub-cache
test_script:
- cd flutter_local_notifications
- flutter test
task:
name: Run integration tests (Android)
env:
EMULATOR_API_LEVEL: 28
ANDROID_ABI: "default;x86"
container:
image: cirrusci/flutter:stable
cpu: 4
memory: 10G
kvm: true
pub_cache:
folder: ~/.pub-cache
kvm_script: sudo chown cirrus:cirrus /dev/kvm
install_images_script: sdkmanager "system-images;android-$EMULATOR_API_LEVEL;$ANDROID_ABI"
create_device_script:
echo no | avdmanager create avd --force -n test -k "system-images;android-$EMULATOR_API_LEVEL;$ANDROID_ABI"
start_emulator_background_script:
$ANDROID_HOME/emulator/emulator -no-window -verbose -avd test -no-audio -no-window
wait_for_emulator_script:
android-wait-for-emulator
test_script:
- cd flutter_local_notifications
- cd example
- flutter drive --driver=test_driver/flutter_local_notifications_e2e_test.dart test_driver/flutter_local_notifications_e2e.dart