-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmake.bat
60 lines (49 loc) · 1.08 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
@ECHO OFF
REM Command file for CoolPlot
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. init to install development packages
echo. test to run the tests for this package
echo. install to install the package locally
echo. docs to create the documentation
echo. build shorthand notation for init, install, test, docs
echo. upload to upload wheels to PyPI
goto end
)
:: if "%1" == "init" (
:: for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
:: del /q /s %BUILDDIR%\*
:: goto end
:: )
if "%1" == "init" (
pip install -r requirements.txt
pip install -r requirements_dev.txt
goto end
)
if "%1" == "test" (
nosetests -v --with-coverage --cover-package=CoolPlot
goto end
)
if "%1" == "install" (
python setup.py install
goto end
)
if "%1" == "docs" (
cd docs && make html
goto end
)
if "%1" == "build" (
CALL make.bat init
CALL make.bat install
CALL make.bat test
CALL make.bat docs
@echo "Build completed."
goto end
)
if "%1" == "upload" (
python setup.py upload
goto end
)
:end