CI: introduce black

This commit is contained in:
Antoine Bartuccio 2018-10-04 21:16:02 +02:00
parent d1d1ba4aff
commit 88d6f8dc8a
Signed by: klmp200
GPG Key ID: E7245548C53F904B
1 changed files with 16 additions and 1 deletions

View File

@ -1,8 +1,17 @@
test:
stages:
- setup
- test
setup:
stage: setup
script:
- apt-get update
- apt-get install -y gettext
- pip install -r requirements.txt
test:
stage: test
script:
- pip install coverage
- ./manage.py compilemessages
- coverage run ./manage.py test
@ -11,3 +20,9 @@ test:
artifacts:
paths:
- coverage_report/
black:
stage: test
script:
- pip install black
- black --check .