forked from hazelcast/hazelcast-csharp-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
21 lines (21 loc) · 1.12 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
setlocal EnableDelayedExpansion
pushd %~dp0
IF "%1"=="" (set COVERAGE="--no-coverage") ELSE (set COVERAGE=%1)
set HAZELCAST_VERSION=3.6-RC2-SNAPSHOT
set HAZELCAST_HOME=%~dp0\server
set HAZELCAST_REDIRECT_OUTPUT=true
echo Starting build...
msbuild Build.proj /p:Configuration=Release /p:Platform="Any CPU" /target:Build
IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
echo Downlading latest HZ snapshot from Maven Central...
call mvn dependency:get -DrepoUrl=https://oss.sonatype.org/content/repositories/snapshots -Dartifact=com.hazelcast:hazelcast:%HAZELCAST_VERSION% -Ddest=%HAZELCAST_HOME%/hazelcast.jar
IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
IF %COVERAGE%==--coverage (
echo Running Unit Tests with coverage...
dotcover analyse /TargetExecutable="packages\NUnit.Runners.2.6.4\tools\nunit-console.exe" /TargetArguments="/xml:"console-text.xml" Hazelcast.Test/bin/Release/Hazelcast.Test.dll" /TargetWorkingDir=. /Output=Coverage.html /ReportType=HTML
) ELSE (
echo Running Unit Tests...
packages\NUnit.Runners.2.6.4\tools\nunit-console /xml:"console-text.xml" "Hazelcast.Test/bin/Release/Hazelcast.Test.dll" /noshadow
)
popd