-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauto_test.cmd
55 lines (34 loc) · 1.24 KB
/
auto_test.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
pushd .
cd %~dp0/owt-server-p2p
call npm install
cd %~dp0/DisplayWPF_Net47
set STAGE_PRODUCTION=%1
set APP_VERSION=%~2
if "%STAGE_PRODUCTION%"=="stage" (set DOWNLOAD_URL=https://myviewboardstorage.s3-us-west-2.amazonaws.com/uploads/Display_Stage/)
if "%STAGE_PRODUCTION%"=="production" (set DOWNLOAD_URL=https://myviewboardstorage.s3-us-west-2.amazonaws.com/uploads/Display/)
rem echo downloading latest myViewBoard Display...
rem echo download url "%DOWNLOAD_URL%%APP_VERSION%"
rem call certutil.exe -urlcache -split -f "%DOWNLOAD_URL%%APP_VERSION%" "%APP_VERSION%"
rem call %cd%/7-Zip/7z.exe x "%APP_VERSION%"
rem if errorlevel 1 goto :error
rem call %cd%/7-Zip/7z.exe x disk1.cab
rem if errorlevel 1 goto :error
call pip install -r %~dp0/requirements.txt
rem --local launch rpc servers for test---
cd %~dp0/owt-server-p2p
start launchRpc.bat
cd %~dp0/DisplayWPF_Net47
start launchRpc.bat
cd %~dp0/clumsy
start launchRpc.bat
rem --------------------------------------
cd %~dp0/pytest
call pytest --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml
goto :exit
:error
popd
echo Last command failed with error code: %errorlevel%
:exit
popd
exit /b %errorlevel%