-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
46 lines (46 loc) · 1.09 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
39
40
41
42
43
44
45
46
dist: xenial
language: python
cache:
pip: true
directories:
- "$HOME/.cache/pypoetry"
matrix:
include:
- python: "2.7"
env: CELERY_VERSION=3.1
- python: "2.7"
env: CELERY_VERSION=4.0
- python: "2.7"
env: CELERY_VERSION=4.1
- python: "2.7"
env: CELERY_VERSION=4.2
- python: "2.7"
env: CELERY_VERSION=4.3
- python: "3.5"
env: CELERY_VERSION=3.1
- python: "3.5"
env: CELERY_VERSION=4.0
- python: "3.5"
env: CELERY_VERSION=4.1
- python: "3.5"
env: CELERY_VERSION=4.2
- python: "3.5"
env: CELERY_VERSION=4.3
- python: "3.6"
env: CELERY_VERSION=4.1
- python: "3.6"
env: CELERY_VERSION=4.2
- python: "3.6"
env: CELERY_VERSION=4.3
- python: "3.7"
env: CELERY_VERSION=4.3
before_install:
- pip install poetry==0.12.17
install:
- env -u VIRTUAL_ENV poetry add celery==$CELERY_VERSION
- env -u VIRTUAL_ENV poetry add codecov
script:
- env -u VIRTUAL_ENV poetry run pytest
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then (env -u VIRTUAL_ENV poetry run black --check .); fi
after_success:
- env -u VIRTUAL_ENV poetry run codecov