forked from MeetKai/flutterlocation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
85 lines (82 loc) · 2.31 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
pub_cache:
folder: ~/.pub-cache
task:
container:
dockerfile: .ci/Dockerfile
upgrade_script:
- flutter channel stable
- flutter upgrade
- flutter channel master
- flutter upgrade
- git fetch origin master
activate_script: pub global activate flutter_plugin_tools
allow_failures: $CHANNEL == "master"
matrix:
- name: analyze
env:
matrix:
CHANNEL: "master"
CHANNEL: "stable"
test_script:
- flutter channel $CHANNEL
- cd location
- flutter pub get
- cd ../location_platform_interface
- flutter pub get
- cd ../location_web
- flutter pub get
- cd ..
- flutter analyze
- name: test
env:
CODECOV_TOKEN: ENCRYPTED[9ba9d1e58de2fc81556d89154383b44d9360408c6e7f40f5f7940d42b6c5bbac1cfb9c773ddcc20db6eba85622a3db38]
matrix:
CHANNEL: "master"
CHANNEL: "stable"
test_script:
- flutter channel $CHANNEL
- cd location
- flutter test --coverage
- if [ $CHANNEL = "stable" ]; then bash <(curl -s https://codecov.io/bash); fi
- cd ../location_platform_interface
- flutter test --coverage
- if [ $CHANNEL = "stable" ]; then bash <(curl -s https://codecov.io/bash); fi
task:
container:
dockerfile: .ci/Dockerfile
kvm: true
cpu: 8
memory: 16G
env:
matrix:
CHANNEL: "master"
CHANNEL: "stable"
allow_failures: $CHANNEL == "master"
name: e2e
upgrade_script:
- flutter channel stable
- flutter upgrade
- flutter channel master
- flutter upgrade
- git fetch origin master
activate_script: pub global activate flutter_plugin_tools
accel_check_script:
- sudo chown cirrus:cirrus /dev/kvm
- $ANDROID_HOME/emulator/emulator -accel-check
create_device_script:
echo no | avdmanager create avd --force
-n test
-k "system-images;android-29;default;x86"
start_emulator_background_script:
$ANDROID_HOME/emulator/emulator
-avd test
-no-audio
-no-window
wait_for_emulator_script:
- adb wait-for-device
test_script:
- cd location
- flutter channel $CHANNEL
- cd example
- flutter build apk
- flutter drive --driver=test_driver/integration_test.dart --target=integration_test/location_test.dart