forked from F5Networks/marathon-bigip-ctlr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (47 loc) · 1.67 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
# This is for builds not triggered through Travis CI
LICENSE_STRICT ?= false
# If strict license approval check is desired, pass the corresponding flag
# to Attributions Generator on command line
ifeq ($(LICENSE_STRICT), true)
LIC_FLAG=--al release
endif
.PHONY: all doc-preview test-docs devel-image python-lint python-unit python-sanity
all:
@printf "\n\nAvailable targets:\n"
@printf " devel-image - build development ready docker container\n"
@printf " doc-preview - Use docs image to build docs\n"
@printf " doc-preview - Use docs image to build local preview of docs\n"
@printf " test-docs - Use docs image to build and test docs\n"
# one-time html build using a docker container
.PHONY: docker-html
docker-html:
rm -rf docs/_build
./build-tools/docker-docs.sh make -C docs/ html
doc-preview:
rm -rf docs/_build
DOCKER_RUN_ARGS="-p 127.0.0.1:8000:8000" \
./build-tools/docker-docs.sh make -C docs preview
test-docs:
rm -rf docs/_build
./build-tools/docker-docs.sh ./build-tools/test-docs.sh
devel-image:
./build-tools/build-devel-image.sh
python-lint:
flake8 ./build-tools/version-tool
flake8 --exclude=docs/,src/ ./
./build-tools/lint.sh
python-unit:
coverage run -m unittest discover -v
coverage html
coverage report
python-sanity: python-lint python-unit
att-gen-backends:
docker run -v $(PWD):$(PWD) --rm -it \
f5devcentral/attributions-generator \
bash usr/local/bin/run-backends.sh $(PWD) \
--pip="--requirements=marathon-runtime-requirements.txt"
att-gen-frontend:
docker run -v $(PWD):$(PWD) --rm -it \
f5devcentral/attributions-generator \
node /frontEnd/frontEnd.js --pd $(PWD) $(LIC_FLAG)
att-gen: att-gen-backends att-gen-frontend