From: ambrishest Date: Tue, 15 Aug 2023 10:59:23 +0000 (+0100) Subject: Enabling SONAR - Added Jobs for pm-file-converter X-Git-Tag: 1.1.0~23 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=a815c6d349b5e8e4901cdd9181d03c4d23930ad6;p=nonrtric%2Fplt%2Franpm.git Enabling SONAR - Added Jobs for pm-file-converter Issue-ID: NONRTRIC-879 Change-Id: I545c3a57acd3ac7def0069b0a185a0f0e56ed894 Signed-off-by: ambrishest --- diff --git a/pm-file-converter/build-pm-file-converter-ubuntu.sh b/pm-file-converter/build-pm-file-converter-ubuntu.sh index 762d3b0..3035ba0 100644 --- a/pm-file-converter/build-pm-file-converter-ubuntu.sh +++ b/pm-file-converter/build-pm-file-converter-ubuntu.sh @@ -1,7 +1,7 @@ #!/bin/bash ############################################################################## # -# Copyright (C) 2022: Nordix Foundation +# Copyright (C) 2023: Nordix Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,12 +22,15 @@ echo "--> build-pm-file-converter-ubuntu.sh" # 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 +export PATH=$PATH:/usr/local/go/bin:$(go env GOPATH)/bin:$(go env GOPATH) +which go +which go-acc export GO111MODULE=on go version cd pm-file-converter/ # install the go coverage tool helper +go get github.com/ory/go-acc go install github.com/ory/go-acc go get github.com/stretchr/testify/mock@v1.7.1