Commit 5300ec3c authored by Mark Canterbury's avatar Mark Canterbury
Browse files

Attempting CI/CD baseline generation

parent 9d9aa4fd
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -6,11 +6,28 @@ workflow:
    - if: $CI_COMMIT_BRANCH

stages:
  - markdown_test
  - preflight
  - compile
  - lint
  - build

# -----------------------------------------------------------
# Markdown

markdown:
  stage: markdown_test
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
  interruptible: true
  script:
    - cd 104196
    - ./publish.sh 001 ts_spec_template.docx 104196 ts_cover_skeleton.docx TS
  artifacts:
    paths:
      - "104196/baseline/*.docx"
    name: $CI_MERGE_REQUEST_TITLE
    expire_in: 30 days

# -----------------------------------------------------------
# Preflight
+0 −4
Original line number Diff line number Diff line
@@ -255,7 +255,3 @@ No additional comments on this topic are made in the present document.
|December 2025    |  0.6.0  | Version uploaded for discussion on 2025-12-16 |
|December 2025    |  0.6.1  | Version at end of discussion on 2025-12-16 |
|            |         |                           |



+2 −2
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ done
for i in *.md ;  do
    if [ $i != 'README.md' ]; then
    	if [[ $i =~ (GS|GR|TS|TR|EN|EG).*\.md ]] ; then
        	echo "\n------ Processing MD file to combine all clauses (::include) -------"
        	echo "\n------ Processing $i to combine all clauses (::include) -------"
            docker run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) -w "/tmp" "$MARKDOWN_TOOLS_DOCKER_IMAGE" processMDSpec -fmo "$i" -fmf frontmatter.md
            docker run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) -w "/tmp" "$MARKDOWN_TOOLS_DOCKER_IMAGE" processMDSpec "$i" > combined.md
            cat combined.md > $i
@@ -72,7 +72,7 @@ for i in *.md ; do
	  		echo "\n------ Preparing spec --------"
	    	docker run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) "$GENERATE_BASELINE_DOCKER_IMAGE" pandocFilter -ts -fp -o "/tmp/" "/tmp/$i"
			echo "\n------ Publishing spec --------"
			mkdir baseline
			[ -d baseline ] || mkdir baseline
	    	# Word output
	    	docker run --rm -v $(pwd):/data -u $(id -u):$(id -g) -w "/data" "$PANDOC_DOCKER_IMAGE" "/data/$i" --toc --metadata toc-title="Contents" -F mermaid-filter -f markdown+escaped_line_breaks -t docx --reference-doc "/data/${SPEC_TEMPLATE}" -o "baseline/${SPEC_NAME}_${TAG_NAME}.docx"
	    	#echo 'docker run --rm -v $(pwd):/data -u $(id -u):$(id -g) "$DOCKER_IMAGE" "/data/$i" -F mermaid-filter -f markdown+escaped_line_breaks -t pdf -o "${4}_${2}.pdf"'