From a815c6d349b5e8e4901cdd9181d03c4d23930ad6 Mon Sep 17 00:00:00 2001 From: ambrishest Date: Tue, 15 Aug 2023 11:59:23 +0100 Subject: [PATCH] Enabling SONAR - Added Jobs for pm-file-converter Issue-ID: NONRTRIC-879 Change-Id: I545c3a57acd3ac7def0069b0a185a0f0e56ed894 Signed-off-by: ambrishest --- pm-file-converter/build-pm-file-converter-ubuntu.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.16.6