-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
111 lines (105 loc) · 2.28 KB
/
.gitlab-ci.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
102
103
104
105
106
107
108
109
110
111
stages:
- test
- build
- deploy
- cleanup
flutter-test-macos:
stage: test
variables:
GITHUB_STATUS_CONTEXT: "ci/test/ios"
before_script:
- sudo /usr/sbin/chown -R runner /Users/runner/builds
script:
- ./ci/01-macos-test.sh
tags:
- os=macos
- flutter_build_ios=true
flutter-test-linux:
stage: test
variables:
GITHUB_STATUS_CONTEXT: "ci/test/android"
image: xertrov/flutter:beta
script:
- ./ci/01-linux-test.sh
tags:
- os=linux
- flutter_build_android=true
artifacts:
reports:
cobertura: coverage/coverage.xml
untracked: false
expire_in: 9001 days
flutter_build_android:
stage: build
variables:
GITHUB_STATUS_CONTEXT: "ci/build/android"
image: xertrov/flutter:beta
before_script:
- mkdir -p android-sdk-linux
- sudo ln -s `pwd`/android-sdk-linux/ /opt/android-sdk-linux
- flutter packages get
- flutter clean
script:
- ./ci/10-android-build.sh
artifacts:
paths:
- build/app/outputs/apk/debug/app-debug.apk
tags:
- os=linux
- flutter_build_android=true
cache:
key: android-sdk-linux-cache
paths:
- android-sdk-linux/
flutter_build_ios_master:
stage: build
variables:
GITHUB_STATUS_CONTEXT: "ci/build/ios"
IOS_BUILD_EXTRA: ""
IOS_EXPORT_EXTRA: "-allowProvisioningUpdates"
before_script:
- sudo /usr/sbin/chown -R runner /Users/runner/builds
- flutter packages get
- flutter clean
only:
refs:
- master@voteflux/voting_app
script:
- ./ci/10-ios-build.sh
artifacts:
paths:
- ios/build/Runner.ipa
tags:
- flutter_build_ios=true
- flutter_codesign_ios=true
- os=macos
flutter_build_ios_other:
stage: build
variables:
GITHUB_STATUS_CONTEXT: "ci/build/ios"
IOS_BUILD_EXTRA: "--no-codesign"
IOS_EXPORT_EXTRA: ""
before_script:
- flutter packages get
- flutter clean
only:
- branches@voteflux/voting_app
except:
refs:
- master
script:
- ./ci/10-ios-build.sh
artifacts:
paths:
- ios/build/Runner.ipa
tags:
- flutter_build_ios=true
- flutter_codesign_ios=false
- os=macos
cleanup_macos:
stage: cleanup
script:
- sudo /usr/sbin/chown -R runner /Users/runner/builds
- rm -rf build/
- flutter clean
when: on_failure