Skip to content

Commit

Permalink
Ws configuration (#760)
Browse files Browse the repository at this point in the history
* Updated WS configuration file

* Added run-test command to makefile

* deleted old credentials
  • Loading branch information
CohenOrian authored Apr 14, 2022
1 parent e5239e9 commit 54f9298
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .pipeline/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
general:
githubApiUrl: 'https://api.github.com'
githubServerUrl: 'https://github.com'
gitSshKeyCredentialsId: 'alex-github-ssh'
githubTokenCredentialsId: 'alex-public-github-token'

steps:
pollBuilds:
Expand Down
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ GO ?= go
GOFMT ?= gofmt
BINDIR ?= bin
PROJECT_PKG ?= github.com/Peripli/service-manager
TEST_PROFILE_OUT= cover.out

PLATFORM ?= linux
ARCH ?= amd64
Expand Down Expand Up @@ -178,6 +179,25 @@ coverage: test-report ## Produces an HTML report containing code coverage detail
@go tool cover -html=$(TEST_PROFILE) -o $(COVERAGE)
@echo Generated coverage report in $(COVERAGE).

go-deps:
set GO111MODULE=off
go get gotest.tools/gotestsum
go get github.com/t-yuki/gocover-cobertura
go install github.com/axw/gocov/gocov@latest
go get github.com/AlekSi/gocov-xml
go get -u github.com/jstemmer/go-junit-report
set GO111MODULE=on
go mod tidy
# Run tests

run-test: go-deps
rm -rf reports
mkdir -p reports
$(GOBIN)/gotestsum --junitfile reports/junit.xml -- -coverprofile=cover.out ./... -mod=mod
go tool cover -func $(TEST_PROFILE_OUT) | grep total
find . -name cover.out -execdir sh -c '$(GOBIN)/gocover-cobertura < cover.out > coverage.xml' \; ;\
GO111MODULE=on

clean-generate:
@rm -f generate

Expand Down
6 changes: 3 additions & 3 deletions wss-unified-agent-go.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ go.dependencyManager=modules
##################################
# Organization tokens:
##################################
apiKey=
userKey=
#apiKey=
#userKey=

projectName=
projectVersion=
Expand All @@ -35,6 +35,6 @@ productToken=
includes=**/*.lock

excludes=

case.sensitive.glob=false
followSymbolicLinks=true

0 comments on commit 54f9298

Please sign in to comment.