-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.gitlab-ci.yml
95 lines (86 loc) · 1.87 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
image: thyrlian/android-sdk
stages:
- check
- test
- build
before_script:
- chmod +x gradlew
prepare_release:
stage: check
script:
- chmod +x prepareRelease.sh
- ./prepareRelease.sh
only:
- release
lint:
stage: test
script:
- ./gradlew lintStoreRelease
- ./gradlew lintFdroidRelease
except:
- master
#test:
# stage: test
# script:
# - ./gradlew test
build_debug:
stage: build
script:
- chmod +x changeVersion.sh
- ./changeVersion.sh app/build.gradle " $CI_COMMIT_REF_NAME\_$CI_PIPELINE_ID" --append
- ./gradlew assembleStoreDebug --stacktrace -x test
artifacts:
paths:
- app/build/outputs/apk/store/debug/*.apk
expire_in: 5 days
only:
- translations
except:
- release
build_fdroid:
stage: build
script:
- wget -O $KEYSTORE_FILE $KEYSTORE_URL -q
- ./gradlew clean assembleFdroidRelease --stacktrace -x test
except:
- /^no_ci.*$/
- /^no_build.*$/
- /^no_build_no_tests.*$/
- /^no_build_no_deploy.*$/
artifacts:
paths:
- app/build/outputs/apk/fdroid/release/*.apk
- app/build/outputs/mapping/fdroid/release/mapping.txt
expire_in: 30 days
only:
- master
- release
build_release:
stage: build
script:
- wget -O $KEYSTORE_FILE $KEYSTORE_URL -q
- ./gradlew clean assembleStoreRelease --stacktrace -x test
except:
- /^no_ci.*$/
- /^no_build.*$/
- /^no_build_no_tests.*$/
- /^no_build_no_deploy.*$/
artifacts:
paths:
- app/build/outputs/apk/store/release/*.apk
- app/build/outputs/mapping/store/release/mapping.txt
expire_in: 30 days
only:
- master
- release
test_build_release:
stage: test
script:
- ./gradlew clean assembleStoreUnsignedRelease --stacktrace -x test
except:
- /^no_ci.*$/
- /^no_build.*$/
- /^no_build_no_tests.*$/
- /^no_build_no_deploy.*$/
- master
- release