forked from bwapi/bwapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
executable file
·35 lines (28 loc) · 1.31 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
:: This file contains the minimum number of statements to create a full BWAPI release.
:: Testing and static analysis are external operations.
:: These operations require the following tools in the PATH environment variable:
:: - msbuild (Building the solution)
:: - git (Generating git information)
:: - doxygen (Documentation generation)
:: - graphvis/dot (Graphs in documentation)
:: - bash (Documentation post-processing (TODO: Switch out for BAT))
:: - pngcrush (image compression for better web experience)
:: - java (for HTML/CSS compression apps)
:: - Inno Setup (Installer)
:: - 7-Zip (archive without installer)
pushd %CD%
if defined APPVEYOR (
set MSBUILD_ADDITIONAL_OPTIONS=/logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
set VSTEST_ADDITIONAL_OPTIONS=/logger:Appveyor
)
:: Build BWAPI's full stack
cd bwapi
::nuget restore
msbuild %MSBUILD_ADDITIONAL_OPTIONS% /verbosity:normal /p:Configuration=Debug_Pipeline bwapi.sln
msbuild %MSBUILD_ADDITIONAL_OPTIONS% /verbosity:normal /p:Configuration=Release_Pipeline bwapi.sln
msbuild %MSBUILD_ADDITIONAL_OPTIONS% /verbosity:normal /p:Configuration=Installer_Target bwapi.sln
:: Run unit tests
cd Debug
vstest.console BWAPILIBTest.dll BWAPICoreTest.dll %VSTEST_ADDITIONAL_OPTIONS%
:: Finish
popd