-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
79 lines (68 loc) · 1.32 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
default:
image: python:3.10
stages: # List of stages for jobs, and their order of execution
- style
- test
- deploy
####### Style ##########
flake8:
stage: style
needs: []
image: python:3.10
before_script: []
cache: []
allow_failure: true
only:
- develop
- master
- release
script:
- pip install flake8
- flake8 src/cr2autoware --extend-ignore=E501,E203 --max-line-length=120
black:
stage: style
needs: []
image: pyfound/black:24.2.0
before_script: []
cache: []
allow_failure: true
only:
- develop
- master
- release
script:
- black --check --verbose --diff --color src/cr2autoware
########### Test #################
test_build_pages:
stage: test
allow_failure: true
script:
- pip install mkdocs
- pip install mkdocstrings-python
- pip install mkdocs-material
- mkdocs build
artifacts:
paths:
- site
needs: [ ]
################# Deploy ##########
# Deploy to gitlab pages
pages:
stage: deploy
publish: site
only:
- master
- release
- develop
when: manual
script:
- pip install mkdocs
- pip install mkdocstrings-python
- pip install mkdocs-material
- mkdocs build
artifacts:
paths:
- site
environment:
name: Gitlab Pages
url: https://cps.pages.gitlab.lrz.de/dfg-car/