diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 13:57:22 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-10 13:57:22 +0100 |
commit | 451d1e1c4bb8a59d1ce9d9327ca8b0dc849d03ec (patch) | |
tree | 390c13ee108fae215a8de7648dfb5fa1fd4afb73 /.builds/debian.yml | |
parent | Updated Python dependencies. (diff) | |
download | newspipe-451d1e1c4bb8a59d1ce9d9327ca8b0dc849d03ec.tar.gz newspipe-451d1e1c4bb8a59d1ce9d9327ca8b0dc849d03ec.tar.bz2 newspipe-451d1e1c4bb8a59d1ce9d9327ca8b0dc849d03ec.zip |
Added Debian build file for sourcehut builds.
Diffstat (limited to '.builds/debian.yml')
-rw-r--r-- | .builds/debian.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.builds/debian.yml b/.builds/debian.yml new file mode 100644 index 00000000..54753607 --- /dev/null +++ b/.builds/debian.yml @@ -0,0 +1,23 @@ +image: debian/sid +sources: + - https://git.sr.ht/~cedric/newspipe +packages: + - python3 + - python3-dev + - python3-pip + - python3-venv +environment: + project: newspipe +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 |