2019-09-24 19:02:54 +02:00
|
|
|
# Config file for automatic testing at travis-ci.org
|
|
|
|
|
2020-01-28 16:16:48 +01:00
|
|
|
stages:
|
|
|
|
- format
|
|
|
|
- test
|
|
|
|
|
2019-09-24 19:02:54 +02:00
|
|
|
language: python
|
|
|
|
|
2020-01-28 16:16:48 +01:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: format
|
|
|
|
name: "Black format check"
|
|
|
|
python: "3.7"
|
|
|
|
install: pip install black
|
|
|
|
script:
|
|
|
|
- black --version
|
2020-01-28 17:24:59 +01:00
|
|
|
- black . --check
|
2020-01-28 16:53:25 +01:00
|
|
|
after_success: ""
|
2020-01-28 16:16:48 +01:00
|
|
|
|
2019-09-24 19:02:54 +02:00
|
|
|
python:
|
|
|
|
- "3.6"
|
2019-09-24 19:32:39 +02:00
|
|
|
- "3.7"
|
2019-11-25 20:23:59 +01:00
|
|
|
- "3.8"
|
2019-09-24 19:02:54 +02:00
|
|
|
|
2019-09-24 19:32:39 +02:00
|
|
|
env:
|
2019-09-24 20:06:07 +02:00
|
|
|
- DJANGO_VERSION=django-22
|
2020-01-06 19:13:47 +01:00
|
|
|
- DJANGO_VERSION=django-30
|
2019-09-24 19:02:54 +02:00
|
|
|
|
|
|
|
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
|
|
|
|
install: pip install -r requirements_test.txt
|
|
|
|
|
|
|
|
# command to run tests using coverage, e.g. python setup.py test
|
2019-09-24 19:49:30 +02:00
|
|
|
script: tox -e $(echo py$TRAVIS_PYTHON_VERSION-$DJANGO_VERSION | tr -d .)
|
2019-09-24 19:02:54 +02:00
|
|
|
|
|
|
|
after_success:
|
2019-09-24 19:49:30 +02:00
|
|
|
- coveralls
|