-
Notifications
You must be signed in to change notification settings - Fork 431
/
Copy pathbuild.ci.cmd
46 lines (32 loc) · 1.19 KB
/
build.ci.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
ECHO ==============================PYTHON BUILD/TEST START==============================
pushd libraries\resource-generator
REM Dependencies
ECHO.
ECHO # Installing Resource Generator Dependencies
CALL pip install -r .\requirements.txt
REM Build Resources
ECHO.
ECHO # Building Resources
CALL python index.py ..\recognizers-number\resource-definitions.json
CALL python index.py ..\recognizers-number-with-unit\resource-definitions.json
CALL python index.py ..\recognizers-date-time\resource-definitions.json
CALL python index.py ..\recognizers-sequence\resource-definitions.json
popd
pip install -e .\libraries\recognizers-text\
pip install -e .\libraries\recognizers-number\
pip install -e .\libraries\recognizers-number-with-unit\
pip install -e .\libraries\recognizers-date-time\
pip install -e .\libraries\recognizers-sequence\
pip install -e .\libraries\recognizers-suite\
pip install -r .\tests\requirements.txt
pytest --tb=line
IF %ERRORLEVEL% == 1 (
ECHO Python Test failure/s found!
EXIT /b %ERRORLEVEL%
) ELSE (
IF %ERRORLEVEL% NEQ 0 (
ECHO # Failed to build Python Project.
EXIT /b %ERRORLEVEL%
)
)
ECHO ============================== PYTHON BUILD/TEST END ==============================