From 63a674bed38f3abad4543af8bca455bc41c64a0a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 9 Jan 2024 19:25:14 +0200 Subject: ambient.yaml: clab, and commentd-out placeholder for subplot-web Signed-off-by: Lars Wirzenius Sponsored-by: author --- ambient.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/ambient.yaml b/ambient.yaml index 6b673c6..ee38636 100644 --- a/ambient.yaml +++ b/ambient.yaml @@ -48,6 +48,18 @@ projects: - action: deb + # subplot-web: + # image: ~/tmp/ambient/ambient-boot.qcow2 + # source: ~/pers/subplot/subplot-web/src/ + # publish_artifacts: true + # plan: + # - action: shell + # shell: | + # sed -i 's#^srcdir:.*#srcdir: /workspace/src#' ikiwiki.setup + # sed -i 's#^destdir:.*#destdir: /workspace/artifacts#' ikiwiki.setup + + # ikiwiki --setup ikiwiki.setup --libdir /workspace/deps --rebuild --verbose + ambient-web: image: ~/tmp/ambient/ambient-boot.qcow2 source: ~/pers/ambient-ci/ambient-web/src/ @@ -226,6 +238,36 @@ projects: make cp gtdfh.html /workspace/artifacts/index.html + clab: + image: ~/tmp/ambient/ambient-boot.qcow2 + source: ~/pers/clab/git + publish_artifacts: true + pre_plan: + - action: cargo_fetch + plan: + - action: rustup_setup + - action: cargo_clippy + - action: cargo_build + - action: cargo_test + - action: shell + shell: | + export PATH="/root/.cargo/bin:$PATH" + subplot codegen clab.subplot -o test.py + rm -f test.log + if ! python3 test.py --log test.log; then + cat test.log + exit 1 + fi + rm -f test.log test.py + git status --ignored + + V="$(dpkg-parsechangelog -SVersion | sed 's/-[^-]*$//')" + T="$(date -u "+%Y%m%dT%H%M%S")" + version="$V.ci$T-1" + dch -v "$version" "CI build under Ambient." + dch -r '' + - action: deb + # - image: ~/tmp/ambient/ambient-boot.qcow2 # source: ~/pers/clab/git # publish_artifacts: true -- cgit v1.2.1