-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathmake.bat
More file actions
47 lines (37 loc) · 796 Bytes
/
make.bat
File metadata and controls
47 lines (37 loc) · 796 Bytes
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
@ECHO off
if /I %1 == init goto :init
if /I %1 == test goto :test
if /I %1 == doctest goto :doctest
if /I %1 == check goto :check
if /I %1 == lint goto :lint
if /I %1 == coverage goto :coverage
if /I %1 == api-docs goto :apidocs
if /I %1 == docs goto :docs
goto :eof
:init
pip install .[tests,develop]
goto :eof
:test
py.test tests\ --doctest-modules matchpy\ README.rst docs\example.rst
goto :eof
:doctest
py.test --doctest-modules -k "not tests" matchpy\ README.rst docs\example.rst
goto :eof
:check
flake8
goto :eof
:lint
pylint --reports=no matchpy
goto :eof
:coverage
py.test --cov=matchpy --cov-report html --cov-report term tests\
goto :eof
:apidocs
rmdir /s /q docs\api
sphinx-apidoc -e -T -o docs\api matchpy
goto :docs
:docs
cd docs
make html
cd ..
goto :eof