forked from KiCad/kicad-library-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
48 lines (43 loc) · 945 Bytes
/
.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
image: python:3.10-slim
before_script:
- apt-get update -q -y
- apt-get install -y make
- python3 -V
- pip install pytest
symbol_rulechecker:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- changes:
- "common/*"
- "klc-check/*"
- "klc-check/*symbol/*"
script:
- make test-klc-symbols
- make test-comparelibs-symbols
artifacts:
reports:
metrics: metrics.txt
footprint_rulechecker:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- changes:
- "common/*"
- "klc-check/*"
- "klc-check/*footprint.pretty/*"
script:
- make test-klc-footprints
artifacts:
reports:
metrics: metrics.txt
check_python_code:
rules:
- when: always
script:
- pip install flake8
- make lint
check_spelling:
rules:
- when: always
script:
- apt-get -qq update && apt-get install --yes codespell
- make spelling