forked from roam-qgis/Roam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
101 lines (83 loc) · 2.03 KB
/
build.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
98
99
100
101
@ECHO OFF
REM ---------------------------------------------------------------------------------------
REM Script to build the resource and UI files. You only really need to run this if you are
REM running from source. Package.bat will build all the resources before it creates the package
REM Change %OSGEO4W_ROOT% in setenv.bat to change in the location of QGIS.
REM ---------------------------------------------------------------------------------------
pushd %~dp0
call scripts\setenv.bat %1
IF "%2"=="" goto build
GOTO %2
:watch
python scripts\watchui.py
exit
:install-req
ECHO Installing requirements
python -m pip install -r requirements.txt
GOTO END
:install-req-build-server
ECHO Installing requirements
python -m pip install -r requirements-tcbuild.txt
GOTO END
:build
ECHO Building..
python setup.py clean
python setup.py build
GOTO END
:exe
ECHO Making package..
python setup.py clean
python setup.py build
python setup.py py2exe
GOTO END
:clean
SET OLD_CLEAN=%CLEAN%
SET CLEAN=YES
python setup.py clean
SET CLEAN=%OLD_CLEAN%
GOTO END
:release
ECHO Building release
python setup.py clean
python setup.py build
python setup.py py2exe
IF NOT EXIST release MKDIR release
del release\*.* /Q /F
pushd dist
ECHO Making zip file..
SET NAME=%3
python -m zipfile -c "..\release\IntraMaps Roam%NAME%.zip" .
GOTO END
:installer
ECHO Building installer
SET NAME=%3
CALL scripts\installer\makesfx.bat "%~dp0release\IntraMaps Roam%NAME% Installer " dist
CALL scripts\installer\makesfx.bat "%~dp0release\IntraMaps Roam%NAME% Installer - Silent" dist -s
GOTO END
:test
@ECHO ON
ECHO Running tests
py.test --cov=src\roam src\roam.tests --cov-report html --cov-report term
GOTO END
:test-only
ECHO Running tests
py.test src\roam.tests
GOTO END
:design
ECHO Opening desinger
START designer.exe
GOTO END
:help
ECHO ===========================
ECHO OPTIONS
ECHO ===========================
ECHO build 2.18
ECHO build 2.18 build
ECHO build 2.18 exe
ECHO build 2.18 release
ECHO build 2.18 test
ECHO build 2.18 test-only
ECHO build 2.18 design
GOTO END
:END
popd