Enabling SONAR - Added Jobs for pm-file-converter
[nonrtric/plt/ranpm.git] / 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