From a6a9c5b49a9179e3d3081f5e18b1164d083a0caf Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 21 Mar 2021 12:45:14 +0200 Subject: add a heippa project for testing release pipeline --- ci-prod.ick | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/ci-prod.ick b/ci-prod.ick index 4366c92..5bec876 100644 --- a/ci-prod.ick +++ b/ci-prod.ick @@ -763,6 +763,30 @@ projects: workspace_name: ick2 pipelines: *deb_ci_pipelines + - project: heippa + parameters: + <<: *dummy_program_params + sources: + - name: code + repo: git://git.liw.fi/heippa + ref: master + location: src + rsync_target: ickliwfi@http.liw.fi:/srv/http/trash + workspace_name: heippa + distribution_rel: unstable + pipelines: + - ick/setup_container + - ick/add_apt_signing_keys + - ick/add_apt_sources + - ick/restore_workspace + - remove_debs_from_workspace + - ick/get_sources + - ick/install_debian_build_dependencies + - ick/build_deb_ci + - build_deb_releases + - ick/upload_debs + - ick/save_workspace + pipelines: @@ -979,3 +1003,47 @@ pipelines: ./check fi fi + + - pipeline: build_deb_releases + actions: + - where: container + shell: | + export HOME=/workspace + export PATH="$HOME/.cargo/bin:$PATH" + + cd /workspace/src + + # Build new releases. + echo looking for new releases to build + + git pull --tags + git tag -l + + # Always build newest tag; this is for debugging the pipeline. + if false; then + rm -f /workspace/built_tags + touch /workspace/built_tags + python3 ./list_new_release_tags /workspace/built_tags + tac < /workspace/built_tags | tail +2 > foo + mv foo /workspace/built_tags + cat /workspace/built_tags + fi + + python3 ./list_new_release_tags /workspace/built_tags > /workspace/new_tags + cat /workspace/new_tags + + cat /workspace/new_tags | while read tag + do + echo "New release tag: $tag" + bash -x ./build_release_deb.sh /workspace "$tag" + echo "Finished building tag $tag" + done + + echo "Finished building release debs (if any)" + + - pipeline: remove_debs_from_workspace + actions: + - where: container + shell: | + find -maxdepth 1 -type f -name "*_*.*" -delete + ls -la -- cgit v1.2.1