From c07d6cdbaa475521d8be16b4753efbe5a77ac4a5 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 17 Mar 2021 21:12:14 +0200 Subject: summain-rs, with doc publishing --- ci-prod.ick | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/ci-prod.ick b/ci-prod.ick index e16e293..7210245 100644 --- a/ci-prod.ick +++ b/ci-prod.ick @@ -109,6 +109,7 @@ projects: - url: http://ci-prod-controller.vm.liw.fi/debian dist: unstable-ci section: main + rsync_src: publish systree_name: buster-build-essential distribution_ci: unstable-ci distribution_rel: unstable @@ -336,6 +337,7 @@ projects: - ick/install_debian_build_dependencies - ick/build_deb_ci - ick/upload_debs + - format_subplots - ick/save_workspace - project: journal.liw.fi @@ -671,14 +673,13 @@ projects: parameters: <<: *dummy_program_params workspace_name: summain-rs + rsync_target: ickliwfi@http.liw.fi:/srv/http/summain.liw.fi sources: - name: code repo: git://git.liw.fi/summain-rs ref: main location: src pipelines: *deb_ci_rustup_pipelines - # pipelines: - # - docgen_and_publish_subplots pipelines: @@ -790,6 +791,30 @@ pipelines: sh rustup.sh -y fi + - pipeline: format_subplots + parameters: + - rsync_src + - rsync_target + actions: + - where: container + shell: | + mkdir -p /workspace/publish + + find -name "*.md" | + while read file + do + if sp-meta "$file" | grep -q "^scenario:" + then + base="$(basename "$file" .md)" + sp-docgen "$file" -o /workspace/publish/$base.html + sp-docgen "$file" -o /workspace/publish/$base.pdf + fi + done + find /workspace/publish -type f -exec chmod 0644 '{}' + + + - where: host + action: rsync + # projects: -- cgit v1.2.1