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: ...@@ -2,6 +2,7 @@ stages:
- check - check
- test - test
- lint - lint
- svg-gen-docu # required to be done before documentation and in separate stages
- documentation - documentation
variables: variables:
...@@ -22,8 +23,12 @@ check_back: ...@@ -22,8 +23,12 @@ check_back:
services: services:
- postgres:10.5 - postgres:10.5
script: script:
- cd backend - cd backend && ./manage.py check
- ./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: tags:
- docker - docker
...@@ -51,7 +56,7 @@ test_back: ...@@ -51,7 +56,7 @@ test_back:
artifacts: artifacts:
paths: paths:
- backend/htmlcov/ - backend/htmlcov/
expire_in: 1 month expire_in: 1 hour
tags: tags:
- docker - docker
...@@ -76,15 +81,30 @@ eslint: ...@@ -76,15 +81,30 @@ eslint:
tags: tags:
- docker - 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: pages:
stage: documentation stage: documentation
image: floawfloaw/plantuml image: floawfloaw/plantuml
dependencies: dependencies:
- test_back - test_back
- generate_UML_svg
script: script:
- mkdir .public - mkdir .public
- mv backend/htmlcov/ .public/coverage - mv backend/htmlcov/ .public/coverage
- make documentation
- mv documentation/ .public/documentation - mv documentation/ .public/documentation
- mv .public public - mv .public public
artifacts: 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