forked from studybuffalo/django-flexible-subscriptions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.36 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
language: python
sudo: required
dist: xenial
jobs:
include:
# Test all actively developed Python and Django combinations
# https://devguide.python.org/#status-of-python-branches
# https://www.djangoproject.com/download/#supported-versions
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
# Python 3.5 and Django 2.2
- python: 3.5
env: DJANGO="django>=2.2,<3.0"
# Python 3.6 and Django 2.2, 3.0
- python: 3.6
env: DJANGO="django>=2.2,<3.0"
- python: 3.6
env: DJANGO="django>=3.0,<3.1"
# Python 3.7 and Django 2.2, 3.0
- python: 3.7
env: DJANGO="django>=2.2,<3.0"
- python: 3.7
env: DJANGO="django>=3.0,<3.1"
# Python 3.8 and Django 2.2, 3.0
- python: 3.8
env: DJANGO="django>=2.2,<3.0"
- python: 3.8
env: DJANGO="django>=3.0,<3.1"
install:
# Need to run update because different python versions may have
# different dependencies. Once pipenv supports arrayed versions this
# could be removed.
- pipenv update --dev
- pipenv install codecov --dev
- pipenv install $DJANGO
script:
# Run Tests
- pipenv run pytest --cov=subscriptions
- codecov
# Run Linters
- pipenv run pylint subscriptions/ sandbox/
- pipenv run pylint tests/ --min-similarity-lines=12
- pipenv run pycodestyle --show-source subscriptions/ sandbox/ tests/