summaryrefslogtreecommitdiff
path: root/ci-prod-programs.ick
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-01-09 10:53:19 +0200
committerLars Wirzenius <liw@liw.fi>2021-01-09 10:53:19 +0200
commit2d2171de36f9f0bacf4466cdb1a58a1bfcf852de (patch)
treef72ec474aa895ae3ac6618591b4fe7f90fe58fff /ci-prod-programs.ick
parente4e4cd4cbd8a7a88efcbdc3f403bcaa78a0a00f8 (diff)
downloadliw-ci-2d2171de36f9f0bacf4466cdb1a58a1bfcf852de.tar.gz
add subplot publishing for summain
Diffstat (limited to 'ci-prod-programs.ick')
-rw-r--r--ci-prod-programs.ick38
1 files changed, 35 insertions, 3 deletions
diff --git a/ci-prod-programs.ick b/ci-prod-programs.ick
index ef23e32..a91f4e8 100644
--- a/ci-prod-programs.ick
+++ b/ci-prod-programs.ick
@@ -626,6 +626,8 @@ projects:
repo: git://git.liw.fi/summain-rs
ref: main
location: src
+ rsync_src: publish
+ rsync_target: ickliwfi@journal.liw.fi:/srv/http/summain.liw.fi
pipelines:
- ick/setup_container
- ick/add_apt_signing_keys
@@ -634,9 +636,7 @@ projects:
- ick/install_debian_build_dependencies
- build_deb_ci
- ick/upload_debs
-
-
-
+ - docgen_and_publish_subplots
- project: apifw-ci-stretch
parameters:
@@ -901,3 +901,35 @@ pipelines:
ls -l /workspace
echo build step ends: stdout
echo build step ends: stderr 1>&2
+
+- pipeline: docgen_and_publish_subplots
+ parameters:
+ - rsync_src
+ - rsync_target
+ actions:
+ - where: container
+ shell: |
+ apt-get update
+ apt-get install -y subplot \
+ pandoc-citeproc \
+ texlive-latex-base \
+ texlive-latex-recommended \
+ texlive-fonts-recommended \
+ plantuml
+
+ cd src
+ for md in *.md
+ do
+ if sp-meta "$md" | grep 'title: .' > /dev/null &&
+ sp-meta "$md" | grep 'scenario: .' > /dev/null
+ then
+ sp-docgen "$md" -o "$(basename "$md" .md).html"
+ sp-docgen "$md" -o "$(basename "$md" .md).pdf"
+ fi
+ done
+
+ mkdir -p /workspace/publish
+ install -m 0644 *.html *.pdf /workspace/publish
+
+ - where: host
+ action: rsync