forked from testcontainers/testcontainers-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
36 lines (27 loc) · 752 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
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 -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