~sumner/sublime-music

ref: 3976bffe81fe91280cbc507b76b156e332eaab49 sublime-music/.builds/build.yml -rw-r--r-- 1.1 KiB
3976bffeSumner Evans contributing: commit message format spec 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
image: archlinux
packages:
  - dbus
  - gobject-introspection
  - gtk3
  - mpv
  - python-cairo
  - python-gobject
  - python-poetry
  - xorg-server-xvfb
sources:
  - https://git.sr.ht/~sumner/sublime-music
environment:
  REPO_NAME: sublime-music
triggers:
  - action: email
    condition: failure
    to: ~sumner/sublime-music-devel@lists.sr.ht
tasks:
  - setup: |
      cd ${REPO_NAME}
      poetry install
      echo "cd ${REPO_NAME}" >> ~/.buildenv
      echo "source $(poetry env info -p)/bin/activate" >> ~/.buildenv

  - lint: |
      poetry check
      black --check .
      flake8
      mypy sublime_music tests/**/*.py
      cicd/custom_style_check.py

  - test: |
      Xvfb :119 -screen 0 1024x768x16 &
      export DISPLAY=:119
      pytest

  - build: |
      poetry build

  # TODO migrate deploy to sr.ht
  # - deploy-pypi: |
  #     ./cicd/run_if_tagged_with_version                             \
  #       "twine upload -r testpypi dist/*"                           \
  #       "twine upload dist/*"

  # - verify-pypi: |
  #     ./cicd/run_if_tagged_with_version                             \
  #       "pip install ${REPO_NAME}"