forked from parasoft/parabank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-jtest-monitor.bat
30 lines (23 loc) · 1.14 KB
/
deploy-jtest-monitor.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
@echo off
IF NOT EXIST set-vars.bat (
echo "Incorrect usage ... running script in wrong directory, cannot find setvars.bat"
GOTO End
)
call set-vars
echo ===================================================================
echo Deploying Jtest Application Coverage Monitor for build.id=%BUILD_ID%
echo ===================================================================
echo **1/3** Generate montior package
call erase /Q target\jtest\runtime_coverage\__default__\runtime_coverage*
call mvn package jtest:monitor -Dmaven.test.skip=true -Dmaven.test.failure.ignore=true > %LOG_DIR%\jtest-monitor-%RUN_TIME%.log
echo **2/3** Cleaning up old coverage data
call erase /Q /S %APP_COVERAGE_DIR%\monitor\runtime_coverage\*
echo **3/3** Copy and unzip monitor package
copy /Y target\jtest\monitor\monitor.zip %APP_COVERAGE_DIR%
pushd %APP_COVERAGE_DIR%
7z x -y -omonitor-cpy monitor.zip
xcopy /I /y monitor-cpy\monitor monitor
popd
echo ===================================================================
echo Finished deploying Jtest Application Coverage Monitor for build.id=%BUILD_ID%
echo ===================================================================