forked from HPAC/matchpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
42 lines (33 loc) · 740 Bytes
/
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
@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 == coverage goto :coverage
if /I %1 == api-docs goto :apidocs
if /I %1 == docs goto :docs
goto :eof
:init
pip install -r requirements.txt
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
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