summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-21 12:45:14 +0200
committerLars Wirzenius <liw@liw.fi>2021-03-21 12:45:14 +0200
commita6a9c5b49a9179e3d3081f5e18b1164d083a0caf (patch)
treebfbf3fc29f68e936512a605a1a4b20449a397e95
parent980845e791c56352efc54a9be0883fe33f6de836 (diff)
downloadliw-ci-a6a9c5b49a9179e3d3081f5e18b1164d083a0caf.tar.gz
add a heippa project for testing release pipeline
-rw-r--r--ci-prod.ick68
1 files changed, 68 insertions, 0 deletions
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