mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
421a03a62a
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
37 lines
No EOL
588 B
YAML
37 lines
No EOL
588 B
YAML
image: "python:3.7"
|
|
|
|
before_script:
|
|
- python --version
|
|
- pip install -r requirements.txt
|
|
|
|
stages:
|
|
- Static Analysis
|
|
- Test
|
|
|
|
mypy:
|
|
stage: Static Analysis
|
|
script:
|
|
- pwd
|
|
- ls -l
|
|
- python -m mypy bild/file.py
|
|
- python -m mypy bild/directory.py
|
|
|
|
flake8:
|
|
stage: Static Analysis
|
|
script:
|
|
- flake8 --max-line-length=120 bild/*.py
|
|
|
|
pylint:
|
|
stage: Static Analysis
|
|
allow_failure: true
|
|
script:
|
|
- pylint -d C0301 bild/*.py
|
|
|
|
unit_test:
|
|
stage: Test
|
|
script:
|
|
- pwd
|
|
- ls -l
|
|
- export PYTHONPATH="$PYTHONPATH:."
|
|
- python -c "import sys;print(sys.path)"
|
|
- pytest |