[MERGED] osmo-ci[master]: osmocom:nightly OBS: add osmo-bsc package / remove nitb-split

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu Oct 26 19:21:37 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: osmocom:nightly OBS: add osmo-bsc package / remove nitb-split
......................................................................


osmocom:nightly OBS: add osmo-bsc package / remove nitb-split

This was the last package that we only built in
osmocom:nitb-split:nightly, so we can remove the latter, too

Change-Id: Ib99e0775e9db30ec3c5263bb3a364d8cab4633c3
---
D scripts/osmocom-nightly-nitb-split.sh
M scripts/osmocom-nightly-packages.sh
2 files changed, 2 insertions(+), 119 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved; Verified



diff --git a/scripts/osmocom-nightly-nitb-split.sh b/scripts/osmocom-nightly-nitb-split.sh
deleted file mode 100755
index 3b547bf..0000000
--- a/scripts/osmocom-nightly-nitb-split.sh
+++ /dev/null
@@ -1,119 +0,0 @@
-#!/bin/bash
-
-set -e
-set -x
-
-DT=$(date +%Y%m%d)
-PROJ=network:osmocom:nitb-split:nightly
-
-### common
-checkout() {
-  local name=$1
-  local branch=$2
-  local url="git://git.osmocom.org"
-
-  cd "$REPO"
-
-  if [ -n "$branch" ] ; then
-    git clone "$url/$name" -b "$branch"
-  else
-    git clone "$url/$name"
-  fi
-
-  cd -
-}
-
-### OBS build
-prepare() {
-  # clean up the whole space
-  mkdir -p "$REPO/osc/"
-  cd "$REPO/osc"
-  osc co "$PROJ"
-}
-
-build() {
-  local name=$1
-  local repodir=$REPO/$name
-  local oscdir=$REPO/osc/$PROJ/$name
-
-  if [ -d "$oscdir" ] ; then
-    # remove earlier version
-    cd "$oscdir"
-    osc rm -- * || true
-  else
-    # new package
-    mkdir -p "$oscdir/"
-    cd "$REPO/osc/$PROJ/"
-    osc add "$name"
-  fi
-
-  cd "$repodir"
-
-  VER=$(head -1 debian/changelog | cut -d ' ' -f 2 | sed 's,(,,'  | sed 's,),,')
-  dch -v "$VER.$DT" -m "Snapshot build"
-  git commit -m "$DT snapshot" debian/
-
-  mkdir -p "$DATA/$name"
-  # source code build without dependency checks and unsigned source and unsigned change log
-  gbp buildpackage -S -uc -us -d --git-ignore-branch "--git-export-dir=$DATA/$name"
-
-  mv "$DATA/$name/"*.tar* "$DATA/$name/"*.dsc "$oscdir/"
-
-  cd "$oscdir"
-  osc add -- *.tar* *.dsc
-  osc ci -m "Snapshot $name $DT"
-}
-
-post() {
-  cd "$REPO/osc/$PROJ/"
-  osc status
-}
-
-build_osmocom() {
-  BASE=$PWD
-  DATA=$BASE/data
-  REPO=$BASE/repo
-
-  # rather than including a dangerous 'rm -rf *' here, lets delegate to the user:
-  if [ -n "$(ls)" ]; then
-    echo "ERROR: I need to run in an empty directory."
-    exit 1
-  fi
-
-  prepare
-
-  checkout libosmocore
-  checkout libosmo-abis
-  checkout libosmo-netif
-  checkout libosmo-sccp
-  checkout libsmpp34
-  checkout libasn1c
-  checkout osmo-iuh
-  checkout osmo-hlr
-  checkout osmo-ggsn
-  checkout osmo-mgw
-  checkout osmo-bsc
-  checkout osmo-msc
-  checkout osmo-sgsn
-
-  build libosmocore
-  build libosmo-abis
-  build libosmo-netif
-  build libosmo-sccp
-  build libsmpp34
-  build libasn1c
-  build osmo-iuh
-  build osmo-hlr
-  build osmo-ggsn
-  build osmo-mgw
-  build osmo-bsc
-  build osmo-msc
-  build osmo-sgsn
-
-  post
-}
-
-TMPDIR=$(mktemp -d nightly-3g_XXXXXX)
-cd "$TMPDIR"
-build_osmocom
-rm -rf "./$TMPDIR/"
diff --git a/scripts/osmocom-nightly-packages.sh b/scripts/osmocom-nightly-packages.sh
index 12aa587..6206576 100755
--- a/scripts/osmocom-nightly-packages.sh
+++ b/scripts/osmocom-nightly-packages.sh
@@ -26,6 +26,7 @@
 git clone git://git.osmocom.org/osmo-hlr
 git clone git://git.osmocom.org/osmo-mgw
 git clone git://git.osmocom.org/osmo-msc
+git clone git://git.osmocom.org/osmo-bsc
 
 
 PROJ=network:osmocom:nightly
@@ -67,6 +68,7 @@
 build osmo-hlr
 build osmo-mgw
 build osmo-msc
+build osmo-bsc
 
 cd $PROJ
 osc ci -m "Snapshot $DT"

-- 
To view, visit https://gerrit.osmocom.org/4434
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib99e0775e9db30ec3c5263bb3a364d8cab4633c3
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>


More information about the gerrit-log mailing list