-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
38 lines (31 loc) · 1.01 KB
/
.travis.yml
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
language: python
dist: xenial
python:
- 3.7
services:
- redis-server
stages:
- lint
- test
env:
BROKER_URL: 'redis://localhost:6379/0'
jobs:
include:
-
stage: lint
python: 3.7
script: 'pre-commit run -a'
-
stage: test
script:
- 'pip install .'
- 'cd tests'
- 'coverage run --include=''*/site-packages/pacifica/dispatcher_example/*'' -p -m celery -A ''pacifica.dispatcher_example.__main__:celery_app'' worker -c 1 -P solo -l info &'
- 'coverage run --include=''*/site-packages/pacifica/dispatcher_example/*'' -m pytest -xv'
- 'coverage run --include=''*/site-packages/pacifica/dispatcher_example/*'' -a -m pacifica.dispatcher_example --stop-after-a-moment'
- 'celery -A ''pacifica.dispatcher_example.__main__:celery_app'' control shutdown || true'
- 'coverage combine -a .coverage*'
- 'coverage report -m --fail-under 100'
install:
- 'pip install -r requirements-dev.txt'
- 'pip install ''celery[redis]'''