-
-
Notifications
You must be signed in to change notification settings - Fork 201
/
make.bat
97 lines (83 loc) · 1.65 KB
/
make.bat
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
@ECHO OFF
if "%1" == "html" goto html
if "%1" == "pdf" goto pdf
if "%1" == "data" goto data
if "%1" == "clean" goto clean
if "%1" == "distclean" goto distclean
if "%1" == "test" goto test
if "%1" == "dev-test" goto dev-test
if "%1" == "flake8" goto flake8
if "%1" == "black" goto black
if "%1" == "type-check" goto type-check
if "%1" == "version-check" goto version-check
if "%1" == "all" goto all
goto end
:html
call :data
cd documentation
call make.bat html
cd ..
goto end
:pdf
call :data
cd documentation
call make.bat latexpdf
cd ..
goto end
:data
cd examples\doxygen
call make.bat all
cd ..\..
cd examples\tinyxml
call make.bat all
cd ..\..
cd examples\specific
call make.bat all
cd ..\..
goto end
:clean
cd examples\doxygen
call make.bat clean
cd ..\..
cd examples\tinyxml
call make.bat clean
cd ..\..
cd examples\specific
call make.bat clean
cd ..\..
goto end
:distclean
call :clean
cd documentation
call make.bat clean
cd ..
goto end
:test
cd tests
python -m pytest -v
cd ..
goto end
:dev-test
cd tests
set PYTHONPATH=..\;%PYTHONPATH%
python -m pytest -v
cd ..
goto end
:flake8
flake8 breathe
goto end
:black
black --check .
goto end
:type-check
mypy --warn-redundant-casts --warn-unused-ignores breathe tests
goto end
:version-check
set PYTHONPATH=..\;%PYTHONPATH%
python scripts\version-check.py
goto end
:all
call :html
call :pdf
goto end
:end