diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-01 01:44:42 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-10-01 01:58:47 +0200 |
commit | 9c5feb21c48e78ea029da40d697df86e1d8eaf1c (patch) | |
tree | 1758731b0a1ff9410bb4ec982e267fdefffac5ce /coverity | |
parent | b8c7833e635c43a53139f338f42cea460381e39b (diff) |
coverity: add osmo-trx to Osmocom build
Change-Id: I57d4658120444a4f6884c0b35ec61e8e7034c83c
Diffstat (limited to 'coverity')
-rwxr-xr-x | coverity/build_Osmocom.sh | 8 | ||||
-rwxr-xr-x | coverity/coverity_test_osmo_trx.sh | 46 | ||||
-rwxr-xr-x | coverity/prepare_source_Osmcocom.sh | 1 |
3 files changed, 9 insertions, 46 deletions
diff --git a/coverity/build_Osmocom.sh b/coverity/build_Osmocom.sh index 40e1e5e..6aaf5fb 100755 --- a/coverity/build_Osmocom.sh +++ b/coverity/build_Osmocom.sh @@ -131,6 +131,12 @@ build_osmosipconnector() { popd } +build_osmotrx() { + pushd osmo-trx + do_build + popd +} + cd "$src_dir" rm -rf "$prefix" @@ -155,3 +161,5 @@ build_osmogmr # MNCC to SIP build_osmosipconnector + +build_osmotrx diff --git a/coverity/coverity_test_osmo_trx.sh b/coverity/coverity_test_osmo_trx.sh deleted file mode 100755 index f4b382e..0000000 --- a/coverity/coverity_test_osmo_trx.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -set -e -x - -base_dir="$PWD" -prefix="$base_dir/install" - -install -d "$prefix" - -export PATH="$base_dir/cov-analysis-linux64-8.5.0/bin/:$PATH" -export PKG_CONFIG_PATH="$prefix/lib/pkgconfig" - -do_build() { - git clean -dxf - git remote prune origin - git pull --rebase - autoreconf --install --force - ./configure --prefix="$prefix" $* - - cov-build --dir cov-int make - make install - tar czf myproject.tgz cov-int -} - -do_upload() { - curl \ - --form token=$2 \ - --form email=holger@freyther.de --form file=@myproject.tgz \ - --form version=Version --form description=AutoUpload \ - https://scan.coverity.com/builds?project=$1 - : -} - -upload_osmotrx() { - pushd osmo-trx - - do_build - #do_upload osmo-trx Insert-Coverity-Token-Here - popd -} - - -cd source - -upload_osmotrx - diff --git a/coverity/prepare_source_Osmcocom.sh b/coverity/prepare_source_Osmcocom.sh index 397e7fc..11e397b 100755 --- a/coverity/prepare_source_Osmcocom.sh +++ b/coverity/prepare_source_Osmcocom.sh @@ -19,6 +19,7 @@ for proj in \ osmo-iuh \ osmo-pcu \ osmo-sip-connector \ + osmo-trx \ ; do git clone git://git.osmocom.org/$proj |