Useful tool to show Gitlab pipeline as mermaid
Project description
Pipeline as mermaid
Useful tool to show Gitlab pipeline as mermaid
required environments
GITLAB_API_TOKEN
- gitlab api token
Gitlab pipeline as graph LR
graph LR
classDef failed fill:white,stroke:#db3b21,color:black;
classDef success fill:white,stroke:#1aaa55,color:black;
classDef classWarn fill:white,stroke:#fc9403,color:black
classDef canceled fill:white,stroke:#999
730991283(unit tests)
730991284(build)
730991285(s3)
730991286(firebase)
730991283 --> 730991284
730991284 --> 730991285
730991284 --> 730991286
class 730991283 success
class 730991284 success
class 730991285 success
class 730991286 success
graph LR
classDef failed fill:white,stroke:#db3b21,color:black;
classDef success fill:white,stroke:#1aaa55,color:black;
classDef warning fill:white,stroke:#fc9403,color:black;
classDef skipped fill:white,stroke:#999,color:black;
730991283(android)
730991285(s3)
730991286(firebase)
730991287(slack)
730991283 --> 730991285
730991283 --> 730991286
730991285 --> 730991287
730991286 --> 730991287
class 730991283 success
class 730991285 warning
class 730991286 success
class 730991287 failed
graph LR
classDef failed fill:white,stroke:#db3b21,color:black;
classDef success fill:white,stroke:#1aaa55,color:black;
classDef warning fill:white,stroke:#fc9403,color:black;
classDef skipped fill:white,stroke:#999,color:black;
730991283(android)
730991284(ios)
730991285(s3)
730991286(firebase)
730991287(firebase)
730991283 --> 730991285
730991284 --> 730991285
730991283 --> 730991286
730991284 --> 730991286
730991283 --> 730991287
730991284 --> 730991287
class 730991283 failed
class 730991284 success
class 730991285 skipped
class 730991286 skipped
class 730991287 skipped
graph LR
classDef failed fill:white,stroke:#db3b21,color:black;
classDef success fill:white,stroke:#1aaa55,color:black;
classDef warning fill:white,stroke:#fc9403,color:black;
classDef skipped fill:white,stroke:#999,color:black;
classDef running fill:white,stroke:#1f75cb,color:black;
730991283(android)
730991284(ios)
730991285(slack:android)
730991286(slack:ios)
730991283 --> 730991285
730991284 --> 730991285
730991283 --> 730991286
730991284 --> 730991286
class 730991283 running
class 730991284 running
class 730991285 skipped
class 730991286 skipped
Gitlab pipeline as gantt
gantt
dateFormat YYYY-MM-DDTHH:mm:ss.SSSZ
axisFormat %H:%M:%S
section test
unit tests : 730991283, 2020-09-12T12:26:05.370Z, 2020-09-12T12:26:41.665Z
section build
build : 730991284, 2020-09-12T12:26:42.182Z, 2020-09-12T12:27:38.126Z
section deploy
s3 : 730991285, 2020-09-12T12:27:43.757Z, 2020-09-12T12:28:35.406Z
firebase : 730991286, 2020-09-12T12:27:43.757Z, 2020-09-12T12:28:44.406Z
gantt
dateFormat YYYY-MM-DDTHH:mm:ss.SSSZ
axisFormat %H:%M:%S
section build
android : 730991283, 2020-09-12T12:26:05.370Z, 2020-09-12T12:26:41.665Z
section deploy
s3 :crit, active, 730991285, 2020-09-12T12:26:42.182Z, 2020-09-12T12:27:38.126Z
firebase : 730991286, 2020-09-12T12:26:42.346Z, 2020-09-12T12:27:41.991Z
section notify
slack :crit, 730991287, 2020-09-12T12:27:43.757Z, 2020-09-12T12:28:35.406Z
gantt
dateFormat YYYY-MM-DDTHH:mm:ss.SSSZ
axisFormat %H:%M:%S
section build
android :crit, 730991283, 2020-09-12T12:26:05.370Z, 2020-09-12T12:26:41.665Z
ios : 730991284, 2020-09-12T12:26:05.370Z, 2020-09-12T12:26:47.665Z
section deploy
s3 :done, 730991285, after 730991284, 15s
firebase :done, 730991286, after 730991284, 15s
firebase :done, 730991287, after 730991284, 15s
gantt
dateFormat YYYY-MM-DDTHH:mm:ss.SSSZ
axisFormat %H:%M:%S
section build
android :active, 730991283, 2020-09-12T21:45:02.379Z, 15s
ios :active, 730991284, 2020-09-12T21:45:02.379Z, 15s
section deploy
slack-android :done, 730991285, after 730991283, 15s
slack-ios :done, 730991286, after 730991283, 15s
todo:
mermaid
- interactions https://mermaid-js.github.io/mermaid/diagrams-and-syntax-and-examples/gantt.html#interaction
- state
documentaion
- https://pdoc3.github.io/pdoc/
- https://pydoc-markdown.readthedocs.io/en/latest/docs/api-documentation/processors/
ci tools
- https://gitlab.version.fz-juelich.de/vis/jusense-cicd/-/wikis/discussion-on-howto-include-badges-in-gitlab-...
- https://github.com/jongracecox/anybadge
- https://docs.gitlab.com/ee/api/wikis.html
- make python package
badges
- pipeline success
- version package
- license
0.1
- Show gitlab pipeline as gantt diagram
- Show gitlab pipeline as graph LR
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pipeline_mermaid-0.1.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for pipeline_mermaid-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c323426ec6869dfc4af46d26784ae096db1133a9c7435b4b16315271d7f4772 |
|
MD5 | 811bf6ff2b3b44b5e72fd00e7f78217f |
|
BLAKE2b-256 | f669d3a3707a8f9897b43c37453389a6706118d166eb1cdcd54e65726398f83e |