Add testing to build manifest

This commit is contained in:
Ivan Habunek 2018-11-20 19:12:14 +01:00 committed by Drew DeVault
parent 9f51173418
commit df35e5d818
2 changed files with 38 additions and 0 deletions

View File

@ -6,6 +6,9 @@ packages:
- python-setuptools
- python-srht
- python-flask-login
- python-factory-boy
- python-pip
- python-pytest
- rsync
- pacman-contrib
sources:
@ -20,6 +23,11 @@ secrets:
- fa00a8d3-7b63-42d5-8060-3bb31c3e3018 # ssh deploy key
- 3e65a1a8-a20f-4f6b-a452-df2ac398bc1e # package signing key
tasks:
- test: |
cd ${project}
cp config.test.ini config.ini
pip install --user --editable .
pytest --verbose
- build: |
cd ${project}
./setup.py build

30
config.test.ini Normal file
View File

@ -0,0 +1,30 @@
[sr.ht]
site-name=sr.ht
owner-name=Drew DeVault
owner-email=sir@cmpwn.com
source-url=https://git.sr.ht/~sircmpwn/srht
secret-key=
[mail]
smtp-host=
smtp-port=
smtp-user=
smtp-password=
smtp-from=
error-to=
error-from=
pgp-privkey=
pgp-pubkey=
pgp-key-id=
[todo.sr.ht]
origin=http://todo.sr.ht.local
debug-host=
debug-port=
connection-string=
oauth-client-id=
oauth-client-secret=
notify-from=
[meta.sr.ht]
origin=http://meta.sr.ht.local