2020-03-01 03:58:59 +03:00
|
|
|
version: 2.1
|
2020-03-01 05:04:34 +03:00
|
|
|
orbs:
|
|
|
|
docker: circleci/docker@0.6.0
|
2020-03-01 03:58:59 +03:00
|
|
|
|
|
|
|
jobs:
|
2020-03-01 06:35:43 +03:00
|
|
|
test-latest: &template
|
2020-03-01 04:59:44 +03:00
|
|
|
docker:
|
|
|
|
- image: circleci/python:3.8.0
|
2020-03-01 03:58:59 +03:00
|
|
|
environment:
|
2020-03-01 06:58:44 +03:00
|
|
|
DJANGO_VERSION: 3.0.3
|
2020-03-01 06:22:37 +03:00
|
|
|
DRF: 3.11
|
2020-03-01 05:05:46 +03:00
|
|
|
executor: docker/docker
|
2020-03-01 03:58:59 +03:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-03-01 07:02:36 +03:00
|
|
|
- run: pip install -q --user coveralls djangorestframework==$DRF "Django==$DJANGO_VERSION
|
|
|
|
- run: pip install -q --user -r dev-requirements.txt
|
|
|
|
- run: pip install -q --user -r dj_rest_auth/tests/requirements.pip
|
2020-03-01 03:58:59 +03:00
|
|
|
- run:
|
2020-03-01 04:15:56 +03:00
|
|
|
command: coverage run --source=dj_rest_auth setup.py test
|
2020-03-01 03:58:59 +03:00
|
|
|
name: Test
|
2020-03-01 06:35:43 +03:00
|
|
|
test-django-2:
|
2020-03-01 03:58:59 +03:00
|
|
|
<<: *template
|
|
|
|
environment:
|
2020-03-01 06:58:44 +03:00
|
|
|
DJANGO_VERSION: 2.2.10
|
2020-03-01 04:11:49 +03:00
|
|
|
DRF: 3.9
|
2020-03-01 06:35:43 +03:00
|
|
|
test-django-11:
|
2020-03-01 06:34:24 +03:00
|
|
|
<<: *template
|
|
|
|
environment:
|
|
|
|
DJANGO_VERSION: 1.11
|
|
|
|
DRF: 3.9
|
2020-03-01 03:58:59 +03:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
main:
|
|
|
|
jobs:
|
2020-03-01 06:35:43 +03:00
|
|
|
- test-latest
|
|
|
|
- test-django-2
|
|
|
|
- test-django-11
|