forked from roam-qgis/Roam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
67 lines (53 loc) · 1.42 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
@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
: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
: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
:END
popd