forked from AutoFixture/AutoFixture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
30 lines (23 loc) · 895 Bytes
/
build.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
@echo off
cls
SET BUILD_DIR=build
SET TOOLS_DIR=%BUILD_DIR%\tools
SET NUGET_PATH=%TOOLS_DIR%\nuget.exe
IF NOT EXIST %TOOLS_DIR%\ (
mkdir %TOOLS_DIR%
)
IF NOT EXIST %NUGET_PATH% (
echo Downloading NuGet.exe ...
powershell -Command "Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/v4.3.0/nuget.exe -OutFile %NUGET_PATH%"
)
IF NOT EXIST "%TOOLS_DIR%\FAKE.Core\tools\Fake.exe" (
%NUGET_PATH% install "FAKE.Core" -Version 4.63.2 -OutputDirectory %TOOLS_DIR% -ExcludeVersion
)
IF NOT EXIST "%TOOLS_DIR%\NUnit.Runners.2.6.2\" (
%NUGET_PATH% install "NUnit.Runners" -Version 2.6.2 -OutputDirectory %TOOLS_DIR%
)
IF NOT EXIST "%TOOLS_DIR%\xunit.runner.console\" (
%NUGET_PATH% install "xunit.runner.console" -Version 2.3.0 -OutputDirectory %TOOLS_DIR% -ExcludeVersion
)
echo Running FAKE Build...
%TOOLS_DIR%\FAKE.Core\tools\Fake.exe build.fsx %* -BuildDir=%BUILD_DIR%