Stegano/.builds/debian.yml
Cédric Bonhomme c0abda31bc
fixed case
2019-12-15 15:58:14 +01:00

31 lines
945 B
YAML

image: debian/sid
sources:
- https://git.sr.ht/~cedric/stegano
packages:
- python3
- python3-dev
- python3-pip
- python3-venv
environment:
project: stegano
tasks:
- dependencies: |
pip3 install --user poetry
export PATH="$PATH:/home/build/.local/bin"
cd ${project}
poetry install
- lint: |
export PATH="$PATH:/home/build/.local/bin"
cd ${project}
# stop the build if there are Python syntax errors or undefined names
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings.
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- test: |
export PATH="$PATH:/home/build/.local/bin"
cd ${project}
poetry run nosetests
- typecheck: |
export PATH="$PATH:/home/build/.local/bin"
cd ${project}
poetry run python tools/run_mypy.py