-
Notifications
You must be signed in to change notification settings - Fork 1
/
keen.bat
52 lines (44 loc) · 1.02 KB
/
keen.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
42
43
44
45
46
47
48
49
50
51
52
@echo off
GOTO:MAIN
:cleanup
rmdir /s /q build
rmdir /s /q dist
rmdir /s /q keywords
rmdir /s /q src\robotframework_BehaviorTreeLibrary.egg-info
EXIT /b 0
:dependency
call python -m pip install --upgrade pip setuptools wheel
call pip install -r requirements-dev.txt
EXIT /B %ERRORLEVEL%
:build
call:cleanup
call:dependency
call python setup.py sdist bdist_wheel
call python libdoc.py
EXIT /B %ERRORLEVEL%
:install
call:build
call pip install .
EXIT /B %ERRORLEVEL%
:test_unit
call cd atests
call python Treenator_unit_test.py
call cd ..
EXIT /B %ERRORLEVEL%
:test_robot
call cd atests
call robot --outputdir ../result/ .
call cd ..
EXIT /B %ERRORLEVEL%
:test
call:install
call:test_unit
set /A result = %ERRORLEVEL%
mkdir result
call:test_robot
if %result%==0 set /A result = %ERRORLEVEL%
call rebot --name ATests --outputdir result -x rebot_xunit.xml result/output.xml
call:cleanup
EXIT /B %result%
:MAIN
IF NOT "%~1" == "" call:%1