-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
56 lines (43 loc) · 1.58 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
DATE = $(shell date)
PYTHON = $(shell which python)
TOPDIR = $(shell pwd)
SCRIPTDIR = $(TOPDIR)/scripts
IQE_CMD = 'iqe tests plugin --debug cost_management -k test_api -m cost_smoke'
DOCKER := $(shell command -v docker 2> /dev/null)
PODMAN := $(shell command -v podman 2> /dev/null)
help:
@echo "Please use \`make <target>' where <target> is one of:"
@echo " help to show this message"
@echo " install to install the client egg"
@echo " clean to remove client egg"
@echo " test to run unit tests"
@echo " run-iqe runs iqe tests with local changes. (Defaults to smoke tests.)"
@echo " @param IQE_CMD - The iqe command you want to run defaults to:"
@echo " ($(IQE_CMD))"
@echo " run-iqe-local runs a locally modified hccm-plugin with local nise changes."
@echo " @param IQE_CMD - The iqe command you want to run defaults to:"
@echo " ($(IQE_CMD))"
install: clean
$(PYTHON) setup.py build -f
$(PYTHON) setup.py install -f
clean:
-rm -rf dist/ build/ koku_nise.egg-info/
ifdef DOCKER
docker stop iqe-nise 2> /dev/null | true
docker rm iqe-nise 2> /dev/null | true
endif
ifdef PODMAN
podman stop 2> /dev/null | true
podman rm iqe-nise 2> /dev/null | true
endif
test_source=all
test:
$(SCRIPTDIR)/test_generators.sh $(test_source)
lint:
pre-commit run --all-files
run-iqe:
cd scripts; ./iqe_container.sh $(IQE_CMD)
run-iqe-local:
cd scripts; ./local_iqe_container.sh $(IQE_CMD)
requirements:
pipenv lock