summaryrefslogtreecommitdiff
path: root/scripts/packaging/run-packaging-ci-job.sh
blob: 3547e1e1b60065f95a24e3f5a1d2bd67eb8a8bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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."