-
Notifications
You must be signed in to change notification settings - Fork 34
/
.gitlab-ci.yml
54 lines (46 loc) · 1.08 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
---
image: python:bookworm
include:
project: tpo/web/onion-mkdocs
file: .gitlab-ci-base.yml
stages:
- setup
- test
- deploy
.base:
before_script:
- pip3 install -r requirements.txt --break-system-packages
- pip3 install -r test-requirements.txt --break-system-packages
- python3 -m pip install . --break-system-packages
install:
stage: setup
extends: .base
script:
- /bin/true
functional_tests:
stage: test
extends: .base
script:
- pytest --cov-report=term-missing --cov=onionbalance test/functional/
unit_tests:
stage: test
extends: .base
script:
- pytest --cov-report=term-missing --cov=onionbalance --ignore=test/functional/
static_tests:
stage: test
extends: .base
script:
- pylint onionbalance --disable=R,C,W
style_tests:
stage: test
extends: .base
script:
- flake8 onionbalance
pages:
stage: deploy
extends: .onion-mkdocs-clone
after_script:
- $ONION_MKDOCS_LOCATION/scripts/onion-mkdocs-provision-build
- $ONION_MKDOCS_LOCATION/scripts/onion-mkdocs-build
- scripts/docs-preserve-historic-urls