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 07:06:53 +03:00
|
|
|
test-django-3: &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-08-09 21:59:28 +03:00
|
|
|
DJANGO_VERSION: 3.1
|
|
|
|
DRF: 3.11.1
|
2020-03-01 05:05:46 +03:00
|
|
|
executor: docker/docker
|
2020-03-01 03:58:59 +03:00
|
|
|
steps:
|
|
|
|
- checkout
|
2020-06-20 20:53:16 +03:00
|
|
|
- run:
|
2020-08-09 21:59:28 +03:00
|
|
|
command: pip install --user Django==$DJANGO_VERSION djangorestframework==$DRF
|
|
|
|
name: "Pip install version-specific Django + DRF"
|
2020-06-20 20:53:16 +03:00
|
|
|
- run:
|
2020-06-20 21:02:48 +03:00
|
|
|
command: pip install --user -r dj_rest_auth/tests/requirements.pip
|
|
|
|
name: "Pip Install test requirements"
|
2020-03-01 03:58:59 +03:00
|
|
|
- run:
|
2020-06-20 20:31:16 +03:00
|
|
|
command: |
|
|
|
|
mkdir -p test-results/
|
|
|
|
coverage run --source=dj_rest_auth setup.py test
|
2020-06-20 20:36:30 +03:00
|
|
|
coverage report
|
2020-03-01 03:58:59 +03:00
|
|
|
name: Test
|
2020-03-07 03:01:31 +03:00
|
|
|
- run:
|
2020-03-07 03:04:47 +03:00
|
|
|
command: COVERALLS_REPO_TOKEN=Q58WdUuZOi89XHyDeDsGE2lxUGQ2IfqP3 coveralls
|
2020-03-07 03:01:31 +03:00
|
|
|
name: Coverage
|
2020-06-20 20:42:11 +03:00
|
|
|
- run:
|
2020-06-20 20:43:07 +03:00
|
|
|
command: python3 setup.py sdist
|
|
|
|
name: Build
|
2020-06-20 20:25:55 +03:00
|
|
|
- store_test_results:
|
2020-06-20 20:31:16 +03:00
|
|
|
path: test-results/
|
2020-06-20 20:36:30 +03:00
|
|
|
- store_artifacts:
|
2020-06-20 20:42:11 +03:00
|
|
|
path: dist/
|
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 03:58:59 +03:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
main:
|
|
|
|
jobs:
|
2020-03-01 07:06:53 +03:00
|
|
|
- test-django-3
|
|
|
|
- test-django-2
|