DRY's up config

This commit is contained in:
Michael 2020-02-29 22:02:36 -06:00
parent cb1e2b61b8
commit 93ed2a1528
2 changed files with 4 additions and 6 deletions

View File

@ -12,12 +12,9 @@ jobs:
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: 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
- run:
command: coverage run --source=dj_rest_auth setup.py test
name: Test

View File

@ -20,5 +20,6 @@ def runtests():
failures = test_runner.run_tests(['dj_rest_auth'])
sys.exit(bool(failures))
if __name__ == '__main__':
runtests()