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.
This commit is contained in:
16
build-and-test-deb
Executable file
16
build-and-test-deb
Executable file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
os="$1"
|
||||||
|
codename="$2"
|
||||||
|
|
||||||
|
if [[ -z "$os" ]] || [[ -z "$codename" ]]; then
|
||||||
|
echo "Usage: $0 <os> <codename>" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
./build-tarball "$os" "$codename" && ./build-deb "$os" "$codename" && \
|
||||||
|
./test-deb "$os" "$codename"
|
||||||
16
build-and-test-rpm
Executable file
16
build-and-test-rpm
Executable file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
os="$1"
|
||||||
|
codename="$2"
|
||||||
|
|
||||||
|
if [[ -z "$os" ]] || [[ -z "$codename" ]]; then
|
||||||
|
echo "Usage: $0 <os> <codename>" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
./build-tarball "$os" "$codename" && ./build-rpm "$os" "$codename" && \
|
||||||
|
./test-rpm "$os" "$codename"
|
||||||
Reference in New Issue
Block a user