Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #108 from nhurden/update-make
Browse files Browse the repository at this point in the history
Rebuild plugin_test in the Makefile
  • Loading branch information
adikari authored Nov 9, 2022
2 parents e5c46fc + b6dd46d commit a931675
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,25 @@ HAS_DOCKER=$(shell command -v docker;)
.PHONY: all
all: quality test

.PHONY: test
test:
.PHONY: test-go
test-go:
go test -race -coverprofile=coverage.out -covermode=atomic

.PHONY: build-docker-test
build-docker-test:
ifneq (${HAS_DOCKER},)
docker-compose build plugin_test
endif

.PHONY: test-docker
test-docker: build-docker-test
ifneq (${HAS_DOCKER},)
docker-compose run --rm plugin_test
endif

.PHONY: test
test: test-go test-docker

.PHONY: quality
quality:
go vet
Expand Down

0 comments on commit a931675

Please sign in to comment.