Skip to content

Commit c9908a2

Browse files
authored
test: update pipeline for unit tests (#67)
1 parent feecc9d commit c9908a2

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ azure.json
2323

2424
# OSX trash
2525
.DS_Store
26+
27+
.idea/

.pipelines/unit-tests-template.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ jobs:
66
clean: all
77
variables:
88
- group: kubernetes-kms
9-
- name: GOPATH
10-
value: '$(system.defaultWorkingDirectory)/gopath'
119

1210
steps:
1311
- task: GoTool@0
1412
inputs:
15-
version: 1.14.2
13+
version: 1.15
1614
- script: V=1 make build
1715
displayName: Build
1816
- script: make unit-test

Makefile

-7
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,7 @@ integration-test:
5959

6060
unit-test:
6161
@echo "Running Unit Tests..."
62-
ifndef CI
63-
@echo "Running Unit Tests outside CI..."
64-
$Q go env
6562
go test -race -v -count=1 `go list ./... | grep -v client`
66-
else
67-
@echo "Running Unit Tests inside CI..."
68-
go test -race $(shell go list ./... | grep -v /test/e2e) -v
69-
endif
7063

7164
.PHONY: mod
7265
mod:

0 commit comments

Comments
 (0)