forked from KiCad/kicad-library-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (41 loc) · 1014 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
image: python:latest
before_script:
- 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
- python3 klc-check/comparelibs.py -v --old klc-check/test_symbol/comparelibs_old/* --new klc-check/test_symbol/comparelibs_new/* --check --check-derived -m
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