~cedric/pyenigma

a32f377797c1254ea20e6a219407f5a80253ffd3 — Cédric Bonhomme 1 year, 3 months ago 5d9c112
added configuration for build.sr.ht
1 files changed, 27 insertions(+), 0 deletions(-)

A .builds/debian.yml
A .builds/debian.yml => .builds/debian.yml +27 -0
@@ 0,0 1,27 @@
image: debian/sid
sources:
  - https://git.sr.ht/~cedric/pyenigma
packages:
  - python3
  - python3-dev
  - python3-pip
  - python3-venv
environment:
  project: pyenigma
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 nose2 -v --pretty-assert