mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-15 13:37:56 +08:00
50 lines
924 B
YAML
50 lines
924 B
YAML
language: python
|
|
|
|
services:
|
|
- redis
|
|
- mongodb
|
|
|
|
python:
|
|
- "3.7"
|
|
- "3.8"
|
|
|
|
env:
|
|
- DJANGO=3.1
|
|
- DJANGO=2.2.15
|
|
|
|
sudo: true
|
|
dist: xenial
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- tcl8.5
|
|
|
|
before_script:
|
|
- git clone https://github.com/antirez/disque.git disque_server
|
|
- "cd disque_server/src && make && PREFIX=../ make install && cd -"
|
|
- "./disque_server/bin/disque-server &"
|
|
- ./disque_server/bin/disque PING
|
|
|
|
install:
|
|
- pip install -q django==$DJANGO
|
|
- pip install -r requirements.txt
|
|
- pip install pytest --upgrade
|
|
- pip install pytest-django codecov sphinx poetry
|
|
- poetry install
|
|
|
|
script:
|
|
- coverage run --source=django_q -m py.test
|
|
- sphinx-build -b html -d docs/_build/doctrees -nW docs docs/_build/html
|
|
|
|
after_success:
|
|
- codecov
|
|
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/cbcff78c4be241602332
|
|
on_success: change
|
|
on_failure: always
|
|
on_start: never
|