forked from intive/UrbanGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_vs2012_WP8.cmd
44 lines (36 loc) · 1.07 KB
/
build_vs2012_WP8.cmd
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
@echo off
echo ---
echo Configure VS2012
echo ---
call "%VS110COMNTOOLS%\..\..\VC\vcvarsall.bat" x86 || goto error
set CURRENT_DIR=%CD%
echo ---
echo Updating version
echo ---
cd %CURRENT_DIR%\Tools
SetVersion.exe ..\UrbanGame\UrbanGame\Properties\WMAppManifest.xml %BUILD_NUMBER% || goto error
echo ---
echo Building
echo ---
cd %CURRENT_DIR%\UrbanGame
msbuild UrbanGame.sln /t:rebuild /p:Configuration="Release" || goto error
msbuild UrbanGame.sln /t:rebuild /p:Configuration="Debug" || goto error
echo ---
echo Testing
echo ---
cd %CURRENT_DIR%\Tools
UnitTestLauncher_WP8.exe "Emulator WXGA" UnitTestResult.txt {670499a7-b78f-4073-b2eb-8b04d548e9f3} 60 ..UrbanGame\UrbanGameTests\Bin\Debug\Assets\ApplicationIcon.png ..\UrbanGame\UrbanGameTests\Bin\Debug\UrbanGameTests.xap || goto error
goto end
:error
echo ---
echo --- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ---
echo ---
echo ---
echo ------------- FAILED TO BUILD: %MODULE_NAME%
echo ---
echo ---
echo --- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ---
echo ---
cd %CURRENT_DIR%
exit /b 1
:end