forked from killi199/Publication-Management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
86 lines (80 loc) · 1.55 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
# Quelle: https://medium.com/geekculture/setup-gitlab-ci-pipeline-for-angular-9cce853ef281
stages:
- dependencies
- test
- build
frontend_install_dependencies:
image: node:18.12.1-alpine3.16
stage: dependencies
interruptible: true
script:
- cd frontend
- npm install
cache:
key:
files:
- package-lock.json
paths:
- frontend/node_modules
frontend_lint:
image: node:18.12.1-alpine3.16
stage: test
interruptible: true
script:
- cd frontend
- npm link @angular/[email protected]
- ng lint
cache:
key:
files:
- package-lock.json
paths:
- frontend/node_modules
policy: pull
frontend_test:
image: trion/ng-cli-karma:14.2.6
stage: test
interruptible: true
script:
- cd frontend
- npm link @angular/[email protected]
- ng test --watch=false
cache:
key:
files:
- package-lock.json
paths:
- frontend/node_modules
policy: pull
backend_verify:
image: maven:3.8.6-openjdk-18-slim
stage: test
interruptible: true
script:
- cd backend
- mvn verify
frontend_build:
image: node:18.12.1-alpine3.16
stage: build
interruptible: true
script:
- cd frontend
- npm link @angular/[email protected]
- npm run build
cache:
key:
files:
- package-lock.json
paths:
- frontend/node_modules
policy: pull
documentation_build:
image: texlive/texlive:latest
stage: build
interruptible: true
script:
- cd documentation
- latexmk -pdf
artifacts:
paths:
- documentation/hausarbeit.pdf