summaryrefslogtreecommitdiff
path: root/ci-prod-subplot.ick
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-12-15 13:27:57 +0200
committerLars Wirzenius <liw@liw.fi>2020-12-15 13:27:57 +0200
commit1ab0c3dbd3d9b8b75f7cedac3cbcecfebe3d25ff (patch)
tree58259c074f9e660739cc671c067bfcbc17631174 /ci-prod-subplot.ick
parentfe176635894875c13f267e2454c6293f84e6640b (diff)
downloadliw-ci-1ab0c3dbd3d9b8b75f7cedac3cbcecfebe3d25ff.tar.gz
use rustup rust for subplot
Diffstat (limited to 'ci-prod-subplot.ick')
-rw-r--r--ci-prod-subplot.ick85
1 files changed, 47 insertions, 38 deletions
diff --git a/ci-prod-subplot.ick b/ci-prod-subplot.ick
index 62f8626..84afeb0 100644
--- a/ci-prod-subplot.ick
+++ b/ci-prod-subplot.ick
@@ -40,6 +40,7 @@ projects:
DEBFULLNAME: Lars Wirzenius
DEBEMAIL: liw@liw.fi
systree_name: systrees-debian-buster-rust
+ workspace_name: workspace-subplot
distribution_ci: unstable-ci
notify: [liw@liw.fi]
release_signing_keys:
@@ -249,48 +250,13 @@ projects:
- ick/add_apt_sources
- ick/get_sources
- ick/install_debian_build_dependencies
- - ick/build_deb_ci
- - list_files
+ - rustup
+ - build_subplot_deb
- ick/upload_debs
- - upload_examples
-
+ - ick/save_workspace
pipelines:
- - pipeline: build_subplot_site
- parameters:
- - sources
- - rsync_src
- - rsync_target
- actions:
- - shell: |
- apt-get update
- apt-get install -y subplot
- mkdir html
- cd src
- PATH=".:$PATH" ./build.sh ikiwiki ../html
- cd ..
- find -type f -ls
- where: container
-
- - action: rsync
- where: host
-
- - pipeline: upload_examples
- parameters:
- - sources
- - rsync_src
- - rsync_target
- actions:
- - shell: |
- mkdir examples
- cp src/*.html src/*.pdf examples/.
- chmod -R a+rX examples
- where: container
-
- - action: rsync
- where: host
-
- pipeline: list_files
actions:
- shell: |
@@ -300,3 +266,46 @@ pipelines:
cd src
dpkg-checkbuilddeps
where: container
+
+ - pipeline: build_subplot_deb
+ actions:
+ - where: container
+ shell: |
+ export HOME=/workspace
+ export PATH="$HOME/.cargo/bin:$PATH"
+
+ cd /workspace/src
+ name="$(dpkg-parsechangelog -S Source)"
+ version="$(dpkg-parsechangelog -S Version)"
+ distribution="$(dpkg-parsechangelog -S Distribution)"
+
+ case "$version" in
+ *-*)
+ upstream="$(echo "$version" | sed 's/-[^-]*$//')"
+ debian="$(echo "$version" | sed 's/^.*-//')"
+ ;;
+ *)
+ upstream="$version"
+ debian=0
+ ;;
+ esac
+
+ upstream="${upstream}.ci0.${BUILD_NUMBER}"
+ civersion="${upstream}-${debian}"
+
+ git clean -fdx -e target
+ ./check -v
+ install -d /workspace/examples
+ install -m 0644 *.html *.pdf /workspace/examples/.
+
+ rm -f ../*_*
+ git clean -fdx
+ git archive HEAD | xz > "../${name}_${upstream}.orig.tar.xz"
+ dch --no-conf -v "$civersion" -D "${distribution}-ci" --force-distribution "CI build"
+ dpkg-buildpackage -us -uc -sa || cat /tmp/subplot_*.diff.* 2>&1
+
+ cd /workspace
+ ls -l
+
+ - action: rsync
+ where: host