From: ychacon Date: Tue, 15 Mar 2022 12:31:11 +0000 (+0100) Subject: Adding needed files for ci-management X-Git-Tag: 1.1.0~5 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=d2666f955515665c845db90b8bdd73dca8b6423f;p=nonrtric%2Frapp%2Fransliceassurance.git Adding needed files for ci-management Issue-ID: NONRTRIC-733 Change-Id: I70cbb3edb9b48e0fbe18661b49e1effd8ed270ff Signed-off-by: ychacon --- diff --git a/icsversion/build-ransliceassurance-ubuntu.sh b/icsversion/build-ransliceassurance-ubuntu.sh new file mode 100644 index 0000000..5bb3f31 --- /dev/null +++ b/icsversion/build-ransliceassurance-ubuntu.sh @@ -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 index 0000000..6b1c9db --- /dev/null +++ b/icsversion/container-tag.yaml @@ -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