forked from bit3/jsass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
108 lines (91 loc) · 2.61 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
96
97
98
99
100
101
102
103
104
105
106
107
108
image: docker.io/eclipse-temurin:11
cache:
paths:
- .gradle
- .gradle_home
variables:
GRADLE_USER_HOME: ".gradle_home"
before_script:
- mkdir -p .gradle_home
- cp gradle-ci.properties .gradle_home/gradle.properties
Build:
stage: build
artifacts:
expire_in: 30 days
paths:
- build
script:
- ./gradlew clean assemble
.test:
stage: test
needs: ["Build"]
dependencies: ["Build"]
artifacts:
when: always
expire_in: 30 days
paths:
- build/test-results
reports:
junit: build/test-results/**/*.xml
script:
- ./gradlew check
Eclipse Temurin OpenJDK:
extends: .test
image: docker.io/eclipse-temurin:11
#Mac OS:
# extends: .test
# tags: ["saas-macos-medium-m1"]
# image: macos-13-xcode-14
# variables:
# HOMEBREW_NO_AUTO_UPDATE: 1
CentOS 7:
extends: .test
image: registry.gitlab.com/jsass/docker/test-centos7-amd64:latest
variables:
GRADLE_OPTS: '-Dorg.gradle.java.installations.auto-download=false'
CentOS 8:
extends: .test
image: registry.gitlab.com/jsass/docker/test-centos8-amd64:latest
variables:
GRADLE_OPTS: '-Dorg.gradle.java.installations.auto-download=false'
Debian 10 Buster:
extends: .test
image: registry.gitlab.com/jsass/docker/test-debian-10-buster-amd64:latest
variables:
GRADLE_OPTS: '-Dorg.gradle.java.installations.auto-download=false'
Debian 11 Bullseye:
extends: .test
image: registry.gitlab.com/jsass/docker/test-debian-11-bullseye-amd64:latest
variables:
GRADLE_OPTS: '-Dorg.gradle.java.installations.auto-download=false'
Debian 12 Bookworm:
extends: .test
image: registry.gitlab.com/jsass/docker/test-debian-12-bookworm-amd64:latest
variables:
GRADLE_OPTS: '-Dorg.gradle.java.installations.auto-download=false'
Ubuntu 16.04:
extends: .test
image: registry.gitlab.com/jsass/docker/test-ubuntu16.04-amd64:latest
variables:
GRADLE_OPTS: '-Dorg.gradle.java.installations.auto-download=false'
Ubuntu 18.04:
extends: .test
image: registry.gitlab.com/jsass/docker/test-ubuntu18.04-amd64:latest
variables:
GRADLE_OPTS: '-Dorg.gradle.java.installations.auto-download=false'
Ubuntu 20.04:
extends: .test
image: registry.gitlab.com/jsass/docker/test-ubuntu20.04-amd64:latest
variables:
GRADLE_OPTS: '-Dorg.gradle.java.installations.auto-download=false'
Ubuntu 22.04:
extends: .test
image: registry.gitlab.com/jsass/docker/test-ubuntu22.04-amd64:latest
variables:
GRADLE_OPTS: '-Dorg.gradle.java.installations.auto-download=false'
Publish:
stage: deploy
needs: ["Build"]
dependencies: ["Build"]
script:
- ./gradlew publishAllPublicationsToGitlabRepository