SonarQube Issue 20/14120/2
authorsvaidhya <svaidhya@radisys.com>
Wed, 29 Jan 2025 07:00:50 +0000 (07:00 +0000)
committersvaidhya <svaidhya@radisys.com>
Wed, 29 Jan 2025 07:30:04 +0000 (07:30 +0000)
Change-Id: I281deb24f5916fdfcaf3afdd986b5f3effb86400
Signed-off-by: svaidhya <svaidhya@radisys.com>
.github/workflows/gerrit-novote-merge.yaml
CMakeLists.txt
setup-com-log-build-deb.sh [new file with mode: 0644]

index 1c6eb2c..30a6d4f 100644 (file)
@@ -86,7 +86,7 @@ jobs:
       GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
       JDK_VERSION: "17"
       # yamllint disable-line rule:line-length
-      PRE_BUILD_SCRIPT_URL: "https://raw.githubusercontent.com/o-ran-sc/ci-management/master/jjb/com-log/setup-com-log-build-deb.sh"
+      PRE_BUILD_SCRIPT_URL: "https://github.com/o-ran-sc/o-du-l2/blob/master/setup-com-log-build-deb.sh"
       SONAR_ARGS: >
         -Dsonar.organization=o-ran-sc
         -Dsonar.projectKey=o-ran-sc_o-du-l2
index e5561c0..fe58d4e 100644 (file)
@@ -1,6 +1,6 @@
 #sonar qube testing
-project( odu-l2 )
 cmake_minimum_required( VERSION 2.8.12.2)
+project( odu-l2 )
 #No unit test present in this framework TBD in further releases.
 enable_testing()
 add_test(NAME drive_unit_tests COMMAND bash  ../test/unit_test.sh)
diff --git a/setup-com-log-build-deb.sh b/setup-com-log-build-deb.sh
new file mode 100644 (file)
index 0000000..5aab792
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/bash
+##############################################################################
+#
+#   Copyright (c) 2020 AT&T Intellectual Property.
+#   Copyright (c) 2020 Nokia.
+#
+#   Licensed under the Apache License, Version 2.0 (the "License");
+#   you may not use this file except in compliance with the License.
+#   You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
+#
+##############################################################################
+
+# Installs prerequisites needed to compile & test com/log code
+# and build RPM/DEB packages on a Debian/Ubuntu machine.
+
+echo "--> setup-com-log-build-deb.sh"
+
+# Ensure we fail the job if any steps fail.
+set -eux -o pipefail
+
+# install prereqs
+sudo apt-get update && sudo apt-get -q -y install \
+  autoconf-archive libjsoncpp-dev rpm valgrind
+
+echo "--> setup-com-log-build-deb.sh ends"
+