mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
CI: improve CI
This commit is contained in:
parent
cb58b00b6e
commit
839f585f87
@ -1,19 +1,13 @@
|
|||||||
stages:
|
stages:
|
||||||
- setup
|
|
||||||
- test
|
- test
|
||||||
|
|
||||||
setup:
|
test:
|
||||||
stage: setup
|
stage: test
|
||||||
script:
|
script:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y gettext
|
- apt-get install -y gettext
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pip install coverage
|
- pip install coverage
|
||||||
- pip install black
|
|
||||||
|
|
||||||
test:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- ./manage.py compilemessages
|
- ./manage.py compilemessages
|
||||||
- coverage run ./manage.py test
|
- coverage run ./manage.py test
|
||||||
- coverage html
|
- coverage html
|
||||||
@ -25,4 +19,5 @@ test:
|
|||||||
black:
|
black:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
|
- pip install black
|
||||||
- black --check .
|
- black --check .
|
||||||
|
Loading…
Reference in New Issue
Block a user