aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.build.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..209c006
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,23 @@
+image: fedora/latest
+packages:
+ - python3
+ - python3-pip
+ - python3-build
+sources:
+ - https://git.sr.ht/~mcepl/screenplain
+tasks:
+ - build: |
+ cd screenplain
+ python3 -mpip install -r requirements.txt
+ python3 -mbuild .
+ - test: |
+ cd screenplain
+ python3 -mpip install -v --upgrade --target build/ --no-compile --ignore-installed --no-deps --no-index $(readlink -f dist/screenplain-*.whl|tail -n1)
+ export PYTHONPATH=build/
+ python3 -W error -munittest discover -v -p '*test*.py'
+ python3 -mdoctest -v screenplain/*.py
+ python3 -mpycodestyle --ignore=E402,W504 screenplain tests
+artifacts:
+ # https://is.gd/Z5VJlI
+ # - screenplain/dist/screenplain-*.tar.gz
+ # - screenplain/dist/screenplain-*.whl