~ni/nxt-python

ref: 0b38c4337fbffaedc451df5b63ee4851051087dd nxt-python/.builds/debian.yml -rw-r--r-- 772 bytes
0b38c433Nicolas Schodet Do not upload doc when not on master branch 4 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
image: debian/stable
oauth: pages.sr.ht/PAGES:RW
environment:
  site: ni.srht.site
packages:
  - python3-usb
  - python3-bluetooth
  - python3-sphinx
  - python3-sphinx-rtd-theme
  - python3-pytest
  - python3-setuptools
sources:
  - https://git.sr.ht/~ni/nxt-python
tasks:
  - test: |
      cd nxt-python
      python3 -m pytest
  - doc: |
      cd nxt-python/docs
      make html
      mv _build/html latest
      tar czf ../../nxt-python.tar.gz latest
  - install: |
      cd nxt-python
      python3 setup.py install --user
  - upload: |
      cd nxt-python
      # Only on master branch.
      if [ "$(git rev-parse master)" = "$(git rev-parse HEAD)" ]; then \
        acurl -f https://pages.sr.ht/publish/$site/nxt-python -Fcontent=@../nxt-python.tar.gz; \
      fi