Enabling SONAR - Added Jobs for pm-file-converter 20/11620/1
authorambrishest <ambrish.singh@est.tech>
Tue, 15 Aug 2023 10:59:23 +0000 (11:59 +0100)
committerambrishest <ambrish.singh@est.tech>
Tue, 15 Aug 2023 11:01:32 +0000 (12:01 +0100)
Issue-ID: NONRTRIC-879
Change-Id: I545c3a57acd3ac7def0069b0a185a0f0e56ed894
Signed-off-by: ambrishest <ambrish.singh@est.tech>
pm-file-converter/build-pm-file-converter-ubuntu.sh

index 762d3b0..3035ba0 100644 (file)
@@ -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