aboutsummaryrefslogtreecommitdiffstats
path: root/.build.yml
blob: 209c006fe6a416f08a8b6a050276f71ba544981d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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