From f9d99d23fe3a91adf63051290fc95c0290a33ed9 Mon Sep 17 00:00:00 2001 From: drebs Date: Mon, 9 Oct 2017 09:03:08 -0300 Subject: [pkg] add timestamps to packaging jobs --- scripts/packaging/run-packaging-ci-job.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 scripts/packaging/run-packaging-ci-job.sh (limited to 'scripts') diff --git a/scripts/packaging/run-packaging-ci-job.sh b/scripts/packaging/run-packaging-ci-job.sh new file mode 100755 index 00000000..3547e1e1 --- /dev/null +++ b/scripts/packaging/run-packaging-ci-job.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +set -eu + +echo "Starting packaging script for architecture ${ARCH}, distribution ${DIST}..." + +# checkout the relevant branch +if [ -z "$(git remote | grep upstream)" ]; then + git remote add upstream https://0xacab.org/leap/soledad; +fi + +git fetch --tags upstream +pwd; git describe +build-build-package + +# test the package with lintian +build-test-lintian + +# maybe upload the package +if [ -n "${SSH_PRIVATE_KEY}" ]; then + upload-package; +else + echo "Skipping package upload because SSH_PRIVATE_KEY is not set."; +fi + +echo "Packaging script finished." -- cgit v1.2.3