From 5e5467a3b0fa81ad4d6a802160c30569c6a1a2f1 Mon Sep 17 00:00:00 2001 From: Dmitry Maksyoma Date: Sun, 28 Feb 2021 21:24:59 +1300 Subject: [PATCH] Add build-and-test-deb and -rpm It builds tarball, deb/rpm pckage, and runs the test image. It doesn't detect source changes, so it'll always build tarball and the package. --- build-and-test-deb | 16 ++++++++++++++++ build-and-test-rpm | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 build-and-test-deb create mode 100755 build-and-test-rpm diff --git a/build-and-test-deb b/build-and-test-deb new file mode 100755 index 0000000..3728692 --- /dev/null +++ b/build-and-test-deb @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e + +os="$1" +codename="$2" + +if [[ -z "$os" ]] || [[ -z "$codename" ]]; then + echo "Usage: $0 " >&2 + exit 1 +fi + +cd "$(dirname "$0")" + +./build-tarball "$os" "$codename" && ./build-deb "$os" "$codename" && \ + ./test-deb "$os" "$codename" diff --git a/build-and-test-rpm b/build-and-test-rpm new file mode 100755 index 0000000..e6d85b0 --- /dev/null +++ b/build-and-test-rpm @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e + +os="$1" +codename="$2" + +if [[ -z "$os" ]] || [[ -z "$codename" ]]; then + echo "Usage: $0 " >&2 + exit 1 +fi + +cd "$(dirname "$0")" + +./build-tarball "$os" "$codename" && ./build-rpm "$os" "$codename" && \ + ./test-rpm "$os" "$codename"