forked from editorconfig/editorconfig-core-net
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.bat
41 lines (32 loc) · 1.39 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
@echo off
REM we need nuget to install tools locally
if not exist build\tools\nuget\nuget.exe (
ECHO Nuget not found.. Downloading..
mkdir build\tools\nuget
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& 'build\download-nuget.ps1'"
)
REM we need FAKE to process our build scripts
if not exist build\tools\FAKE\tools\Fake.exe (
ECHO FAKE not found.. Installing..
"build\tools\nuget\nuget.exe" "install" "FAKE" "-OutputDirectory" "build\tools" "-ExcludeVersion" "-Prerelease"
)
REM we need nunit-console to run our tests
if not exist build\tools\NUnit.Runners\tools\nunit-console.exe (
ECHO Nunit not found.. Installing
"build\tools\nuget\nuget.exe" "install" "NUnit.Runners" "-OutputDirectory" "build\tools" "-ExcludeVersion" "-Prerelease"
)
if not exist build\tools\ilmerge\ilmerge.exe (
ECHO ilmerge not found.. Installing
"build\tools\nuget\nuget.exe" "install" "ilmerge" "-OutputDirectory" "build\tools" "-ExcludeVersion" "-Prerelease"
)
if not exist build\tools\chocolatey\chocolatey.nupkg (
ECHO chocolatey not found.. Installing
"build\tools\nuget\nuget.exe" "install" "chocolatey" "-OutputDirectory" "build\tools" "-ExcludeVersion" "-Prerelease"
)
SET TARGET="Build"
SET VERSION=
IF NOT [%1]==[] (set TARGET="%1")
IF NOT [%2]==[] (set VERSION="%2")
shift
shift
"build\tools\FAKE\tools\Fake.exe" "build\\build.fsx" "target=%TARGET%" "version=%VERSION%"