This repository has been archived by the owner on Oct 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.gitlab-ci.yml
79 lines (69 loc) · 1.59 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
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
cache:
paths:
- .gradle/wrapper
- .gradle/caches
variables:
LANG: "en_US.UTF-8"
GIT_SUBMODULE_STRATEGY: "recursive"
stages:
- build
- deploy
- build-ios
- deploy-ios
- status-report
build:
stage: build
tags:
- docker
image: gitlab.open-xchange.com:4567/mobile/build/container/flutter
script:
- tools/setup.loadCustomer.sh https://gitlab-ci-token:[email protected]/mobile/coi-customer-ox.git
- tools/build.triggerBuild.sh android debug development 0.999.9 $CI_PIPELINE_ID latest
artifacts:
paths:
- build/app/outputs/apk/development/debug/*.apk
build-ios:
cache: {}
stage: build-ios
tags:
- ios
script:
- tools/setup.loadCustomer.sh https://gitlab-ci-token:[email protected]/mobile/coi-customer-ox.git
- tools/build.triggerBuild.sh ios release development 0.999.9 $CI_PIPELINE_ID latest
artifacts:
paths:
- build/app/outputs/ios/development/Runner.ipa/*.ipa
deploy-ios:
cache: {}
stage: deploy-ios
tags:
- ios
dependencies:
- build-ios
script:
- tools/deploy.uploadToAppCenter.sh ios
deploy:
stage: deploy
tags:
- docker
image: gitlab.open-xchange.com:4567/mobile/build/container/flutter
dependencies:
- build
script:
- tools/deploy.uploadToAppCenter.sh android
status-report-success:
stage: status-report
tags:
- ios
script:
- tools/utils/add-issue-link -s success
when: on_success
status-report-failure:
stage: status-report
tags:
- ios
script:
- tools/utils/add-issue-link -s failure
when: on_failure