-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.gitlab-ci.yml
36 lines (31 loc) · 869 Bytes
/
.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
image: maven:3.6.3-adoptopenjdk-8
stages:
- build
variables:
MAVEN_CLI_OPTS: "--batch-mode -DpackagerPhase=package"
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
CORE: "remotelight-core"
CLIENT: "remotelight-client"
CTARGET: "remotelight-client/target"
cache:
paths:
- .m2/repository
before_script:
- apt-get update && apt-get install -y zip
build:
stage: build
script:
- mvn $MAVEN_CLI_OPTS package
- cd $CTARGET
- zip -r RemoteLight-Windows.zip RemoteLight-Windows
- zip -r RemoteLight-Linux.zip RemoteLight-Linux
- zip -r RemoteLight-MacOS.zip RemoteLight-MacOS
artifacts:
paths:
- $CLIENT/target/*.jar
- $CLIENT/target/RemoteLight-*.zip
exclude:
- $CLIENT/target/remotelight-client-*.jar
expire_in: 2 months
only:
- master