-
Notifications
You must be signed in to change notification settings - Fork 15
/
.gitlab-ci.yml
66 lines (58 loc) · 1.52 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
default:
image: "ubuntu:latest"
before_script:
- apt-get update
- apt-get -y install software-properties-common sudo g++
- add-apt-repository -y ppa:wireshark-dev/stable
- apt-get update
- apt-get -y install pip vim
- DEBIAN_FRONTEND=noninteractive apt-get install -y tshark
- python3 --version
- pip3 install --break-system-packages -r requirements.txt
- pip3 install --break-system-packages -r requirements-dev.txt
- pip3 install --break-system-packages .
- python3 --version
- tshark -v
stages:
- Static Analysis
- Test
black:
stage: Static Analysis
script:
- black --check --config pyproject.toml .
allow_failure: true
flake8:
stage: Static Analysis
script:
- flake8
allow_failure: true
isort:
stage: Static Analysis
script:
- isort --profile black --filter-files -c .
allow_failure: true
cffconvert:
stage: Static Analysis
script:
- cffconvert --validate -i CITATION.cff
allow_failure: true
execute:
stage: Test
script:
- ./ipal-transcriber --version
- ./ipal-state-extractor --version
- ./ipal-minimize --version
- ./ipal-join --version
pytest:
stage: Test
script:
- python3 -m pytest -vv --cov=transcriber --cov=transcribers --cov=state-extractors --cov-report term --cov-report xml:coverage.xml --cov-branch
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
artifacts:
when: always
paths:
- tests/snapshots/output/*
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml