forked from futo-org/voice-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
60 lines (55 loc) · 1.62 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
default:
image: "docker.io/abb128/android-build:latest@sha256:8df16e2badb5e42d2f5e3862683c7ff0ebdcc348affe059385e42eebef79302f"
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_FORCE_HTTPS: "true"
stages: # List of stages for jobs, and their order of execution
- test
- buildDev
- buildRelease
unit-test-job:
stage: test
tags:
- docker
script:
- gradle testDevDebugUnitTest -s
artifacts:
reports:
junit:
- ./app/build/test-results/testDevDebugUnitTest/*.xml
buildDev:
stage: buildDev
tags:
- docker
script:
- ./setUpPropertiesCI.sh
- gradle assembleDevRelease -s
- mv app/build/outputs/apk/dev/release/app-dev-release.apk ./app-release-$CI_COMMIT_SHORT_SHA.apk
- ./sendZulipMessage.sh "New Voice Input dev build - https://gitlab.futo.org/alex/voiceinput/-/jobs/$CI_JOB_ID/artifacts/raw/app-release-$CI_COMMIT_SHORT_SHA.apk"
artifacts:
name: "app-release-$CI_COMMIT_SHORT_SHA"
paths:
- ./*.apk
when: manual
buildRelease:
stage: buildRelease
tags:
- docker
script:
- ./setUpPropertiesCI.sh
- gradle bundlePlayStoreRelease -s
- gradle assembleStandaloneRelease -s
- gradle assembleFDroidRelease -s
- mv app/build/outputs/bundle/playStoreRelease/app-playStore-release.aab ./playStore.aab
- mv app/build/outputs/apk/standalone/release/app-standalone-release.apk ./standalone.apk
- mv app/build/outputs/apk/fDroid/release/app-fDroid-release.apk ./fdroid.apk
artifacts:
name: "release-$CI_COMMIT_SHORT_SHA"
paths:
- ./*.aab
- ./*.apk
only:
- tags
except:
- branches
when: manual