forked from chocolatey/choco
-
Notifications
You must be signed in to change notification settings - Fork 2
/
documentscenarios.bat
43 lines (29 loc) · 1.23 KB
/
documentscenarios.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
@echo off
::Project UppercuT - http://uppercut.googlecode.com
if '%2' NEQ '' goto usage
if '%3' NEQ '' goto usage
if '%1' == '/?' goto usage
if '%1' == '-?' goto usage
if '%1' == '?' goto usage
if '%1' == '/help' goto usage
SET DIR=%cd%
SET BUILD_DIR=%~d0%~p0%
SET NANT="%BUILD_DIR%lib\Nant\nant.exe"
SET build.config.settings="%DIR%\.uppercut"
SET APP_BDDDOC="%DIR%\lib\bdddoc\bdddoc.console.exe"
SET TEST_ASSEMBLY_NAME="chocolatey.tests.integration.dll"
%NANT% /logger:"NAnt.Core.DefaultLogger" /quiet /nologo /f:"%BUILD_DIR%.build\compile.step" -D:build.config.settings=%build.config.settings%
if %ERRORLEVEL% NEQ 0 goto errors
::echo "This step of running integration specs can take a long time with no output"
::%NANT% /logger:"NAnt.Core.DefaultLogger" /nologo /f:"%BUILD_DIR%.build\analyzers\test.step" all -D:build.config.settings=%build.config.settings%
%NANT% /logger:"NAnt.Core.DefaultLogger" /nologo /f:"%BUILD_DIR%.build.custom\bdddoc.build" -D:build.config.settings=%build.config.settings% -D:app.bdddoc=%APP_BDDDOC% -D:test_assembly=%TEST_ASSEMBLY_NAME%
if %ERRORLEVEL% NEQ 0 goto errors
goto finish
:usage
echo.
echo Usage: bdddoc.bat
echo.
goto finish
:errors
EXIT /B %ERRORLEVEL%
:finish