-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
64 lines (55 loc) · 1.33 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
default:
image: ${CI_REGISTRY}/android/shared/docker-android/oci:v2.0.0
before_script:
- export JAVA_TOOL_OPTIONS="-Dhttp.proxyHost=$( echo ${http_proxy##http://} | cut -d':' -f1 ) -Dhttp.proxyPort=$( echo ${http_proxy##http://} | cut -d':' -f2 ) -Dhttps.proxyHost=$( echo ${https_proxy##http://} | cut -d':' -f1 ) -Dhttps.proxyPort=$( echo ${https_proxy##http://} | cut -d':' -f2 ) -Dhttp.nonProxyHosts=\"$( echo $no_proxy | tr ',' '|' )\""
- export GRADLE_USER_HOME=`pwd`/.gradle
variables:
# Use no compression for artifacts
ARTIFACT_COMPRESSION_LEVEL: "fastest"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .gradle
stages:
- build
- test
- publish
.build:
stage: build
tags:
- shared-large
artifacts:
expire_in: 1 week
build:release:
extends: [.build]
only:
- merge_requests
- schedules
- tags
script:
- ./gradlew build
artifacts:
paths:
- ./fusion/**/fusion-release.aar
test:unit:
stage: test
only:
- merge_requests
tags:
- shared-large
script:
- ./gradlew check
publish to nexus:
stage: publish
tags:
- shared-large
script:
- ./gradlew publishMavenPublicationToProtonNexusRepository
when: manual
publish to maven:
stage: publish
tags:
- shared-large
script:
- ./gradlew publishAllPublicationsToMavenCentralRepository
when: manual