forked from testcontainers/testcontainers-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 776 Bytes
/
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
include ./commons-test.mk
.PHONY: test-all
test-all: tools test-tools test-unit
.PHONY: test-examples
test-examples:
@echo "Running example tests..."
$(MAKE) -C examples test
.PHONY: tidy-all
tidy-all:
$(MAKE) tidy
$(MAKE) -C examples tidy-examples
$(MAKE) -C modules tidy-modules
## --------------------------------------
TCENV=tcvenv
PYTHONBIN=./$(TCENV)/bin
tcvenv: tcvenv/touchfile
tcvenv/touchfile:
@echo "Creating docs $(TCENV)..."
test -d $(TCENV) || python3 -m venv $(TCENV)
@echo "Installing requirements..."
. $(PYTHONBIN)/activate; pip install -Ur requirements.txt
touch $(TCENV)/touchfile
clean-docs:
@echo "Destroying docs $(TCENV)..."
rm -rf $(TCENV)
.PHONY: serve-docs
serve-docs: tcvenv
. $(PYTHONBIN)/activate; $(PYTHONBIN)/mkdocs serve