osmith submitted this change.

View Change


Approvals: laforge: Looks good to me, but someone else must approve osmith: Looks good to me, approved pespin: Looks good to me, but someone else must approve Jenkins Builder: Verified
scripts/tarballs: add osmo-e1-recorder

Closes: OS#6228
Change-Id: I6bd8387f99c258226125b33705645c43aadd875f
---
M .gitignore
A scripts/tarballs/install-depends.sh
M scripts/tarballs/publish-tarballs-for-tags.sh
3 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore
index 517a620..5f47674 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
cov-analysis-*
source-*
install-*
+!install-depends.sh
tokens.txt
.*.sw?
jenkins_jobs.ini
diff --git a/scripts/tarballs/install-depends.sh b/scripts/tarballs/install-depends.sh
new file mode 100755
index 0000000..4943712
--- /dev/null
+++ b/scripts/tarballs/install-depends.sh
@@ -0,0 +1,25 @@
+#!/bin/sh -ex
+# For releases where no debian/control exists, install the dependencies to pass
+# the checks in configure.ac so we can run it before building a release
+# tarball.
+
+PROJECT="$1"
+TAG="$2"
+DEPENDS=""
+
+case "$PROJECT" in
+osmo-e1-recorder)
+ DEPENDS="
+ libosmo-abis-dev
+ libosmocore-dev
+ "
+ ;;
+*)
+ DEPENDS=""
+ ;;
+esac
+
+if [ -n "$DEPENDS" ]; then
+ apt-get update
+ apt-get install -y --no-install-recommends $DEPENDS
+fi
diff --git a/scripts/tarballs/publish-tarballs-for-tags.sh b/scripts/tarballs/publish-tarballs-for-tags.sh
index 052e445..3cd8a15 100755
--- a/scripts/tarballs/publish-tarballs-for-tags.sh
+++ b/scripts/tarballs/publish-tarballs-for-tags.sh
@@ -20,6 +20,7 @@
osmo-bsc
osmo-bts
osmo-cbc
+ osmo-e1-recorder
osmo-e1d
osmo-gbproxy
osmo-ggsn
@@ -230,6 +231,8 @@
if [ -e debian/control ]; then
apt-get update
apt-get -y build-dep .
+ else
+ /tarballs/install-depends.sh \"$repo\" \"$tag\"
fi

cd /src/$project_path

To view, visit change 34815. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I6bd8387f99c258226125b33705645c43aadd875f
Gerrit-Change-Number: 34815
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged