Skip to content

Commit

Permalink
Add make targets recetprotctl_install, test_skip_kube and modify test
Browse files Browse the repository at this point in the history
  • Loading branch information
john-westcott-iv committed Nov 16, 2021
1 parent bfea897 commit 540aa30
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RELEASE := 1
OFFICIAL := yes
APPVER := $(VERSION)
endif
SKIP_KUBE=0

# Container command can be docker or podman
CONTAINERCMD ?= podman
Expand Down Expand Up @@ -84,8 +85,14 @@ else
TESTCMD = -run $(RUNTEST)
endif

test_skip_kube: SKIP_KUBE=1
test_skip_kube: test

test:
@go test ./... -p 1 -parallel=16 $(TESTCMD) -count=1
@export PATH=$(PATH):$(PWD); \
export SKIP_KUBE=$(SKIP_KUBE); \
echo "Testing with receptor binary from: `which receptor 2>/dev/null`"; \
go test ./... -p 1 -parallel=16 $(TESTCMD) -count=1

testloop: receptor
@i=1; while echo "------ $$i" && \
Expand All @@ -109,6 +116,11 @@ $(RECEPTORCTL_WHEEL): receptorctl/README.md receptorctl/setup.py $(shell find re

receptorctl_wheel: $(RECEPTORCTL_WHEEL)

# Build and install receptorctl into your python environment
receptorctl_install: $(RECEPTORCTL_WHEEL)
pip uninstall -y receptorctl
pip install $(RECEPTORCTL_WHEEL)

RECEPTORCTL_SDIST = receptorctl/dist/receptorctl-$(VERSION).tar.gz
$(RECEPTORCTL_SDIST): receptorctl/README.md receptorctl/setup.py $(shell find receptorctl/receptorctl -type f -name '*.py')
@cd receptorctl && python3 setup.py sdist
Expand Down

0 comments on commit 540aa30

Please sign in to comment.