django-rest-auth/.circleci/config.yml

32 lines
726 B
YAML
Raw Normal View History

2020-03-01 03:58:59 +03:00
version: 2.1
orbs:
python: circleci/python@0.2.1
jobs:
build-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 04:11:49 +03:00
DJANGO_VERSION: 3.0
DRF: 3.9
2020-03-01 03:58:59 +03:00
executor: python/default
steps:
- checkout
2020-03-01 04:11:49 +03:00
- run: echo "Django==$DJANGO_VERSION" > requirements.txt
- run: echo "djangorestframework==$DRF" >> requirements.txt
2020-03-01 04:15:56 +03:00
- run: pip install coveralls
2020-03-01 04:03:43 +03:00
- run: pip install -r requirements.txt
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
build-django-2:
<<: *template
environment:
2020-03-01 04:11:49 +03:00
DJANGO_VERSION: 2.0
DRF: 3.9
2020-03-01 03:58:59 +03:00
workflows:
main:
jobs:
- build-latest
- build-django-2