Commit f9c12257 authored by René Schöne's avatar René Schöne
Browse files

Testing ragdoc documentation pipeline

parent 7672f116
Pipeline #8744 failed with stages
in 11 seconds
......@@ -2,9 +2,11 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
- test
- publish
- build
- test
- ragdoc_build
- ragdoc_view
- publish
before_script:
- export GRADLE_USER_HOME=`pwd`/.gradle
......@@ -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`.
......
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