-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
78 lines (71 loc) · 1.75 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
image: gradle:6.4.0-jdk11
stages:
- build
- test
- deploy
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
buildClient:
stage: build
script:
- |
echo "Start the build of Client"
gradle :Client:build
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
artifacts:
paths:
- build/libs/*.jar
expire_in: 1 week
buildServer:
stage: build
script:
- |
echo "Start the build of Server"
cd Server
gradle --build-cache assemble
artifacts:
paths:
- build/libs/*.jar
expire_in: 1 week
testServer:
stage: test
script:
- |
echo "Start the test of Server"
cd Server
gradle --build-cache check
#testRunServer:
# stage: test
# script:
# - |
# echo "Start the test of Server"
# cd h2-crud-json
# gradle --build-cache bootRun
compile_pdf:
stage: build
image: timnn/texlive # use a Docker image for LaTeX from https://hub.docker.com/
script:
- cd docs/Architekturbeschreibung/
- pdflatex Architekturbeschreibung.tex # build the pdf just as you would on your computer
artifacts:
paths:
- docs/Architekturbeschreibung/Architekturbeschreibung.pdf # instruct GitLab to keep the main.pdf file
pages:
stage: deploy
script:
- mkdir public # create a folder called public
- cp docs/Architekturbeschreibung/Architekturbeschreibung.pdf public/Architekturbeschreibung.pdf # copy the pdf file into the public folder
artifacts:
paths:
- public # instruct GitLab to keep the public folder
only:
- master # deploy the pdf only for commits made to the master branch
include:
- template: Dependency-Scanning.gitlab-ci.yml