Skip to content

Commit a32f377

Browse files
added configuration for build.sr.ht
1 parent 5d9c112 commit a32f377

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Diff for: .builds/debian.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
image: debian/sid
2+
sources:
3+
- https://git.sr.ht/~cedric/pyenigma
4+
packages:
5+
- python3
6+
- python3-dev
7+
- python3-pip
8+
- python3-venv
9+
environment:
10+
project: pyenigma
11+
tasks:
12+
- dependencies: |
13+
pip3 install --user poetry
14+
export PATH="$PATH:/home/build/.local/bin"
15+
cd ${project}
16+
poetry install
17+
- lint: |
18+
export PATH="$PATH:/home/build/.local/bin"
19+
cd ${project}
20+
# stop the build if there are Python syntax errors or undefined names
21+
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
22+
# exit-zero treats all errors as warnings.
23+
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
24+
- test: |
25+
export PATH="$PATH:/home/build/.local/bin"
26+
cd ${project}
27+
poetry run nose2 -v --pretty-assert

0 commit comments

Comments
 (0)