slpkg/.gitlab-ci.yml
Dimitris Zlatanidis 421a03a62a Updated .gitlab-ci.yml file
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
2020-01-14 22:35:40 +01:00

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