forked from auto-mat/django-import-export-celery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (34 loc) · 908 Bytes
/
.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
sudo: false
language: python
env:
global:
- DATABASE_NAME="travis_ci"
- DATABASE_USER="postgres"
- DATABASE_HOST=""
- DATABASE_PASSWORD=""
- DJANGO_SETTINGS_MODULE="project.settings"
- SECRET_KEY="sadfjasasdfasdfsadfsadfsadfeq"
matrix:
- DJANGO_VERSION="Django>=1.11,<1.12"
- DJANGO_VERSION="Django>=2.0,<2.1"
- DJANGO_VERSION="Django>=2.1,<2.2"
- DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'
python:
- "3.6"
install:
- pip install poetry
- cd example
- poetry install
- poetry run pip install -q $DJANGO_VERSION
before_script:
- poetry run black --check .
- poetry run black --check ../import_export_celery
script:
- poetry run python3 manage.py test
after_script:
- coveralls
addons:
postgresql: "9.6"
matrix:
allow_failures:
- env: DJANGO_VERSION='https://github.com/django/django/archive/master.tar.gz'