django-rest-auth/.circleci/config.yml
2020-02-29 21:58:44 -06:00

40 lines
986 B
YAML

version: 2.1
orbs:
docker: circleci/docker@0.6.0
jobs:
test-latest: &template
docker:
- image: circleci/python:3.8.0
environment:
DJANGO_VERSION: 3.0.3
DRF: 3.11
executor: docker/docker
steps:
- checkout
- run: echo "Django==$DJANGO_VERSION" > requirements.txt
- run: echo "djangorestframework==$DRF" >> requirements.txt
- run: pip install --user coveralls
- run: pip install --user -r requirements.txt
- run: pip install --user -r dev-requirements.txt
- run: pip install --user -r dj_rest_auth/tests/requirements.pip
- run:
command: coverage run --source=dj_rest_auth setup.py test
name: Test
test-django-2:
<<: *template
environment:
DJANGO_VERSION: 2.2.10
DRF: 3.9
test-django-11:
<<: *template
environment:
DJANGO_VERSION: 1.11
DRF: 3.9
workflows:
main:
jobs:
- test-latest
- test-django-2
- test-django-11