~javiljoen/lttb-numpy

ref: eba923c19bf65ab8657ae1fad1c34ee2d2b9dad2 lttb-numpy/.build.yml -rw-r--r-- 901 bytes
eba923c1JA Viljoen Update CI script to stay on debian/buster 1 year, 24 days 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
image: debian/buster
packages:
  - python-numpy
  - python-setuptools
  - python-pytest
  - python-hypothesis
  - python3-numpy
  - python3-setuptools
  - python3-pytest
  - python3-hypothesis
  - pandoc
  - curl
secrets:
  - 649dd5b6-9b5d-498a-b4ca-d17694af169b
tasks:
  - testpy2: |
      cd lttb-numpy
      python2 setup.py install --user --quiet
      python2 -m pytest
  - testpy3: |
      cd lttb-numpy
      python3 setup.py install --user --quiet
      python3 -m pytest
  - readme: |
      cd lttb-numpy
      cat README.rst CONTRIBUTING.rst \
        | pandoc --no-highlight -f rst -o README.html
      set +x  # Avoid echoing the token
      curl -XPUT \
        -H "Authorization: Bearer $(cat ~/.readme-token)" \
        -H "Content-Type: text/html" \
        --data-binary @README.html \
        'https://git.sr.ht/api/repos/lttb-numpy/readme'
      echo "README successfully uploaded"