Adding needed files for ci-management 53/7953/1
authorychacon <yennifer.chacon@est.tech>
Tue, 15 Mar 2022 12:31:11 +0000 (13:31 +0100)
committerychacon <yennifer.chacon@est.tech>
Wed, 16 Mar 2022 08:28:30 +0000 (09:28 +0100)
Issue-ID: NONRTRIC-733
Change-Id: I70cbb3edb9b48e0fbe18661b49e1effd8ed270ff
Signed-off-by: ychacon <yennifer.chacon@est.tech>
icsversion/build-ransliceassurance-ubuntu.sh [new file with mode: 0644]
icsversion/container-tag.yaml [new file with mode: 0644]

diff --git a/icsversion/build-ransliceassurance-ubuntu.sh b/icsversion/build-ransliceassurance-ubuntu.sh
new file mode 100644 (file)
index 0000000..5bb3f31
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/bash
+##############################################################################
+#
+#   Copyright (C) 2022: Nordix Foundation
+#
+#   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.
+#
+##############################################################################
+set -eux
+
+echo "--> build-ransliceassurance-ubuntu.sh"
+curdir=`pwd`
+# go installs tools like go-acc to $HOME/go/bin
+# ubuntu minion path lacks go
+export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
+go version
+cd icsversion/
+
+# install the go coverage tool helper
+go get -v github.com/ory/go-acc
+
+export GO111MODULE=on
+go get github.com/stretchr/testify/mock@v1.7.0
+
+go-acc ./... --ignore mocks
+
+sed -i -e 's/oransc\.org\/usecase\/oduclosedloop/icsversion/' coverage.txt
+
+cp coverage.txt $curdir
+echo "--> build-ransliceassurance-ubuntu.sh ends"
diff --git a/icsversion/container-tag.yaml b/icsversion/container-tag.yaml
new file mode 100644 (file)
index 0000000..6b1c9db
--- /dev/null
@@ -0,0 +1,5 @@
+# The Jenkins job requires a tag to build the Docker image.
+# By default this file is in the docker build directory,
+# but the location can configured in the JJB template.
+---
+tag: 1.0.0