Skip to content
Snippets Groups Projects
Commit 392c45bd authored by Johannes Mey's avatar Johannes Mey
Browse files

add diagram to pages

parent b0fd707d
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,17 @@ test: ...@@ -31,6 +31,17 @@ test:
artifacts: artifacts:
reports: reports:
junit: "build/test-results/test/TEST-*.xml" junit: "build/test-results/test/TEST-*.xml"
diagram:
image: openjdk:11
stage: build
needs:
- build
before_script:
- apt-get update && apt-get -y install graphviz
script:
- "./gradlew generateGrammarDiagrams"
artifacts:
paths: paths:
- "src/gen/resources" - "src/gen/resources"
...@@ -74,9 +85,11 @@ pages: ...@@ -74,9 +85,11 @@ pages:
needs: needs:
- ragdoc_view - ragdoc_view
- test - test
- diagram
before_script: before_script:
- pip install -r pages/requirements.txt - pip install -r pages/requirements.txt
script: script:
- cp -r src/gen/resources/diagrams/ pages/docs/diagrams
- cd pages && mkdocs build - cd pages && mkdocs build
artifacts: artifacts:
paths: paths:
......
...@@ -169,7 +169,7 @@ jastadd { ...@@ -169,7 +169,7 @@ jastadd {
} }
//{{cookiecutter.project_gitlab_id}} // publish gitlab project {{cookiecutter.project_gitlab_id}}
publishing { publishing {
publications { publications {
maven(MavenPublication) { maven(MavenPublication) {
...@@ -203,6 +203,5 @@ publishing { ...@@ -203,6 +203,5 @@ publishing {
// Workflow configuration for phases // Workflow configuration for phases
clean.dependsOn cleanGen clean.dependsOn cleanGen
generateAst.dependsOn relastToJastAdd generateAst.dependsOn relastToJastAdd
generateAst.dependsOn generateGrammarDiagrams
publish.dependsOn jar publish.dependsOn jar
// Grammar for {{cookiecutter.project_short_name}} // Grammar for {{cookiecutter.project_short_name}}
// TODO replace with own grammar
Root ::= A B* [myC:C];
A ::= <Name>;
B ::= <Count:int>;
C;
D:A;
rel D.a <-> A.d*;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment