Commit 80dc3633 authored by Florent Chehab's avatar Florent Chehab

Updated CI for UML generation

parent 2d9098be
Pipeline #35393 passed with stages
in 3 minutes and 20 seconds
......@@ -2,6 +2,7 @@ stages:
- check
- test
- lint
- svg-gen-docu # required to be done before documentation and in separate stages
- documentation
variables:
......@@ -22,8 +23,12 @@ check_back:
services:
- postgres:10.5
script:
- cd backend
- ./manage.py check
- cd backend && ./manage.py check
- cd ../documentation && make extract_django # Try to generate .dot files for the system architecture
artifacts:
paths:
- documentation/generated/
expire_in: 1 hour
tags:
- docker
......@@ -51,7 +56,7 @@ test_back:
artifacts:
paths:
- backend/htmlcov/
expire_in: 1 month
expire_in: 1 hour
tags:
- docker
......@@ -76,15 +81,30 @@ eslint:
tags:
- docker
generate_UML_svg:
stage: svg-gen-docu
image: floawfloaw/plantuml
script: cd documentation && make convert_to_svg
dependencies:
- check_back
artifacts:
paths:
- documentation/generated/
expire_in: 1 hour
only:
- master
tags:
- docker
pages:
stage: documentation
image: floawfloaw/plantuml
dependencies:
- test_back
- generate_UML_svg
script:
- mkdir .public
- mv backend/htmlcov/ .public/coverage
- make documentation
- mv documentation/ .public/documentation
- mv .public public
artifacts:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment