-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (44 loc) · 1.23 KB
/
Makefile
File metadata and controls
55 lines (44 loc) · 1.23 KB
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
GLUE_PLUGINS=$(notdir $(wildcard pulp-glue-npm/src/pulp_glue/*))
CLI_PLUGINS=$(notdir $(wildcard src/pulpcore/cli/*))
.PHONY: info
info:
@echo Pulp glue
@echo plugins: $(GLUE_PLUGINS)
@echo Pulp CLI
@echo plugins: $(CLI_PLUGINS)
.PHONY: build
build:
cd pulp-glue-npm; pyproject-build -n
pyproject-build -n
.PHONY: format
format:
ruff format
ruff check --fix
.PHONY: lint
lint:
find tests .ci -name '*.sh' -print0 | xargs -0 shellcheck -x
ruff format --check --diff
ruff check --diff
.ci/scripts/check_cli_dependencies.py
.ci/scripts/check_click_for_mypy.py
mypy
cd pulp-glue-npm; mypy
@echo "🙊 Code 🙈 LGTM 🙉 !"
tests/cli.toml:
cp $@.example $@
@echo "In order to configure the tests to talk to your test server, you might need to edit $@ ."
.PHONY: test
test: | tests/cli.toml
python3 -m pytest -v tests pulp-glue-npm/tests
.PHONY: livetest
livetest: | tests/cli.toml
python3 -m pytest -v tests pulp-glue-npm/tests -m live
.PHONY: paralleltest
paralleltest: | tests/cli.toml
python3 -m pytest -v tests pulp-glue-npm/tests -m live -n 8
.PHONY: unittest
unittest:
python3 -m pytest -v tests pulp-glue-npm/tests -m "not live"
.PHONY: unittest_glue
unittest_glue:
python3 -m pytest -v pulp-glue-npm/tests -m "not live"