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"
...@@ -4,6 +4,8 @@ variables: ...@@ -4,6 +4,8 @@ variables:
stages: stages:
- build - build
- test - test
- ragdoc_build
- ragdoc_view
- publish - publish
before_script: before_script:
...@@ -22,6 +24,7 @@ build: ...@@ -22,6 +24,7 @@ build:
artifacts: artifacts:
paths: paths:
- "ragconnect.base/build/libs/ragconnect-*.jar" - "ragconnect.base/build/libs/ragconnect-*.jar"
- "src/gen"
expire_in: 1 week expire_in: 1 week
test: test:
...@@ -32,10 +35,6 @@ test: ...@@ -32,10 +35,6 @@ test:
alias: "mqtt" alias: "mqtt"
script: script:
- ./gradlew --console=plain --no-daemon allTests - ./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: artifacts:
when: always when: always
reports: reports:
...@@ -50,6 +49,39 @@ publish: ...@@ -50,6 +49,39 @@ publish:
only: only:
- master - 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: pages:
image: python:3.7-alpine image: python:3.7-alpine
stage: publish stage: publish
...@@ -59,5 +91,3 @@ pages: ...@@ -59,5 +91,3 @@ pages:
artifacts: artifacts:
paths: paths:
- public - public
only:
- master
# Inner workings of `RagConnect` # Inner workings of `RagConnect`
Please see [API documentation](_static/ragdoc/index.html) for more details.
![ros2rag-process](images/ros2rag-process.png) ![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`. `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