forked from micro5k/microg-unofficial-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
69 lines (59 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
65
66
67
68
69
---
# SPDX-FileCopyrightText: none
# SPDX-License-Identifier: CC0-1.0
# SPDX-FileType: SOURCE
image: "openjdk:17-jdk-alpine"
variables:
GIT_DEPTH: "1"
FAST_BUILD: "true"
cache:
key:
files:
- gradle/wrapper/gradle-wrapper.properties
prefix: "$CI_JOB_NAME"
paths:
- cache/
- .gradle/caches/
- .gradle/notifications/
- .gradle/wrapper/
when: "always"
before_script:
- export GRADLE_USER_HOME="${PWD:?}/.gradle"
- apk add bash grep wget zip~=3.0
include:
# - template: Security/Dependency-Scanning.gitlab-ci.yml
# - template: Security/License-Scanning.gitlab-ci.yml
- template: Security/SAST.gitlab-ci.yml
# - template: Security/Secret-Detection.gitlab-ci.yml
stages:
- build
- test
build-ota-oss:
stage: build
script: "./gradlew buildOtaOSS"
rules:
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_COMMIT_TAG
artifacts:
paths:
# - output/*.zip*
expire_in: 1 day
build-ota:
stage: build
script: "./gradlew buildOta"
only:
- main
# license_scanning:
# stage: test
# artifacts:
# paths:
# - gl-license-scanning-report.json
sast:
stage: test
artifacts:
paths:
- gl-sast-report.json
expire_in: 1 day
after_script:
- rm -f "$GRADLE_USER_HOME/caches/modules-2/modules-2.lock"
- rm -fr "$GRADLE_USER_HOME/caches/*/plugin-resolution/"