Skip to content
Snippets Groups Projects
Commit f9c12257 authored by René Schöne's avatar René Schöne
Browse files

Testing ragdoc documentation pipeline

parent 7672f116
No related branches found
No related tags found
1 merge request!1Resolve "Repo documentation"
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
......@@ -4,6 +4,8 @@ variables:
stages:
- build
- test
- ragdoc_build
- ragdoc_view
- publish
before_script:
......@@ -22,6 +24,7 @@ build:
artifacts:
paths:
- "ragconnect.base/build/libs/ragconnect-*.jar"
- "src/gen"
expire_in: 1 week
test:
......@@ -32,10 +35,6 @@ test:
alias: "mqtt"
script:
- ./gradlew --console=plain --no-daemon allTests
- ls -lh
- ls -lh ragconnect.tests
- ls -lh ragconnect.tests/build/test-results/
- ls -lh ragconnect.tests/build/test-results/allTests
artifacts:
when: always
reports:
......@@ -50,6 +49,39 @@ publish:
only:
- master
ragdoc_build:
image:
name: "git-st.inf.tu-dresden.de:4567/jastadd/ragdoc-builder"
entrypoint: [""]
stage: ragdoc_build
dependencies:
- build
script:
- JAVA_FILES=$(find src/ -name '*.java')
- /ragdoc-builder/start-builder.sh -excludeGenerated -d data/ $JAVA_FILES
artifacts:
paths:
- "data/"
ragdoc_view:
image:
name: "git-st.inf.tu-dresden.de:4567/jastadd/ragdoc-view:relations"
entrypoint: [""]
stage: ragdoc_view
dependencies:
- ragdoc_build
script:
- DATA_DIR=$(pwd -P)/data
- mkdir -p pages/_static/ragdoc
- OUTPUT_DIR=$(pwd -P)/pages/_static/ragdoc
- cd /ragdoc-view
- ( cd src/ && rm -rf data && ln -s $DATA_DIR )
- /ragdoc-view/build-view.sh --output-path=$OUTPUT_DIR
- ls -lah $OUTPUT_DIR
artifacts:
paths:
- "pages/_static/ragdoc"
pages:
image: python:3.7-alpine
stage: publish
......@@ -59,5 +91,3 @@ pages:
artifacts:
paths:
- public
only:
- master
# Inner workings of `RagConnect`
Please see [API documentation](_static/ragdoc/index.html) for more details.
![ros2rag-process](images/ros2rag-process.png)
`RagConnect` uses the [relast-preprocessor](https://git-st.inf.tu-dresden.de/jastadd/relast-preprocessor) to parse `.relast` grammar files. This results in an ASTNode of type `Program`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment