forked from carlmontanari/scrapli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
119 lines (93 loc) · 1.9 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
lint:
python -m isort .
python -m black .
python -m pylama .
python -m pydocstyle .
python -m mypy --strict scrapli/
darglint:
find scrapli -type f \( -iname "*.py" \) | xargs darglint -x
test:
python -m pytest \
tests/
cov:
python -m pytest \
--cov=scrapli \
--cov-report html \
--cov-report term \
tests/
test_unit:
python -m pytest \
tests/unit/
cov_unit:
python -m pytest \
--cov=scrapli \
--cov-report html \
--cov-report term \
tests/unit/
test_integration:
python -m pytest \
tests/integration/
cov_integration:
python -m pytest \
--cov=scrapli \
--cov-report html \
--cov-report term \
tests/integration/
test_functional:
python -m pytest \
tests/functional/
cov_functional:
python -m pytest \
--cov=scrapli \
--cov-report html \
--cov-report term \
tests/functional/
.PHONY: docs
docs:
python docs/generate/generate_docs.py
test_docs:
mkdocs build --clean --strict
htmltest -c docs/htmltest.yml -s
rm -rf tmp
deploy_docs:
mkdocs gh-deploy
DOCKER_COMPOSE_FILE=docker-compose.yaml
DOCKER_COMPOSE=docker-compose -f ${DOCKER_COMPOSE_FILE}
start_dev_env_iosxe:
${DOCKER_COMPOSE} \
up -d \
iosxe
start_dev_env_nxos:
${DOCKER_COMPOSE} \
up -d \
nxos
start_dev_env_iosxr:
${DOCKER_COMPOSE} \
up -d \
iosxr
start_dev_env_eos:
${DOCKER_COMPOSE} \
up -d \
eos
start_dev_env_junos:
${DOCKER_COMPOSE} \
up -d \
junos
start_dev_env_linux:
${DOCKER_COMPOSE} \
up -d \
linux
stop_dev_env:
${DOCKER_COMPOSE} \
prepare_dev_env:
python tests/prepare_devices.py cisco_iosxe,cisco_nxos,cisco_iosxr,arista_eos,juniper_junos
prepare_dev_env_iosxe:
python tests/prepare_devices.py cisco_iosxe
prepare_dev_env_nxos:
python tests/prepare_devices.py cisco_nxos
prepare_dev_env_iosxr:
python tests/prepare_devices.py cisco_iosxr
prepare_dev_env_eos:
python tests/prepare_devices.py arista_eos
prepare_dev_env_junos:
python tests/prepare_devices.py juniper_junos