-
Notifications
You must be signed in to change notification settings - Fork 20
/
.gitlab-ci.yml
46 lines (46 loc) · 1022 Bytes
/
.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
stages:
- buildApk
- uploadApk
- notify
- test
mxBuildJob:
stage: buildApk
script:
- mkdir -p app/build/outputs;
- if [ -n "${RELEASE_BUILD}" ]; then source gitlabci/build_release_apk_script.sh; fi;
- if [ -n "${DEBUG_BUILD}" ]; then source gitlabci/build_debug_apk_script.sh; fi;
artifacts:
paths:
- app/build/outputs/
only:
- triggers
tags:
- android
mxUploadApkJob:
stage: uploadApk
script:
- if [ -n "${RELEASE_BUILD}" ]; then source gitlabci/upload_apk_release_script.sh; fi;
- if [ -n "${DEBUG_BUILD}" ]; then source gitlabci/upload_apk_debug_script.sh; fi;
when: on_success
only:
- triggers
tags:
- android
mxBuildSuccessNotifyJob:
stage: notify
when: on_success
script:
- source gitlabci/send_email_success_script.sh;
when: on_success
only:
- triggers
tags:
- android
mxUnittestJob:
stage: test
only:
- triggers
script:
- source gitlabci/android_test_script.sh;
tags:
- android