-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
74 lines (65 loc) · 1.25 KB
/
.gitlab-ci.yml
File metadata and controls
74 lines (65 loc) · 1.25 KB
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
image: theimpulson/gitlab-ci-android
variables:
BUILD_APPS: "antitheftprotector calculator rollingdice"
before_script:
- mkdir outputs
stages:
- build
- test
- release
- deploy
# master #######################################################################
lintDebug:
stage: build
script:
- >
for APPNAME in $BUILD_APPS; do
cd $APPNAME
./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint
cd ..
done
only:
refs:
- master
assembleDebug:
stage: build
script:
- >
for APPNAME in $BUILD_APPS; do
cd $APPNAME
./gradlew assembleDebug
cd ..
done
only:
refs:
- master
testDebug:
stage: test
script:
- >
for APPNAME in $BUILD_APPS; do
cd $APPNAME
./gradlew -Pci --console=plain :app:testDebug
cd ..
done
only:
refs:
- master
assembleRelease:
stage: release
script:
- >
for APPNAME in $BUILD_APPS; do
cd $APPNAME
./gradlew bundleRelease
mv ./app/build/outputs/apk/release/app-release.aab ../outputs/$APPNAME.aab
cd ..
done
only:
refs:
- master
artifacts:
paths:
- ./outputs
# - CHANGELOG
expire_in: 1 week