2019-03-01 21:12:39 +08:00
|
|
|
@echo on
|
|
|
|
|
|
2019-06-14 04:47:12 +08:00
|
|
|
@rem Only 64 bit uses conda and uses a python newer than 3.5
|
2019-03-26 18:18:04 +08:00
|
|
|
IF "%PYTHON_ARCH%"=="64" (
|
|
|
|
|
call activate %VIRTUALENV%
|
|
|
|
|
)
|
2019-02-22 04:00:21 +08:00
|
|
|
|
|
|
|
|
mkdir %TMP_FOLDER%
|
|
|
|
|
cd %TMP_FOLDER%
|
|
|
|
|
|
2020-06-10 22:16:54 +08:00
|
|
|
if "%PYTEST_XDIST%" == "true" (
|
|
|
|
|
set PYTEST_ARGS=%PYTEST_ARGS% -n2
|
|
|
|
|
)
|
|
|
|
|
|
2019-02-22 04:00:21 +08:00
|
|
|
if "%CHECK_WARNINGS%" == "true" (
|
2020-06-22 19:17:07 +08:00
|
|
|
REM numpy's 1.19.0's tostring() deprecation is ignored until scipy and joblib removes its usage
|
|
|
|
|
set PYTEST_ARGS=%PYTEST_ARGS% -Werror::DeprecationWarning -Werror::FutureWarning -Wignore:tostring:DeprecationWarning
|
2019-03-01 21:12:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if "%COVERAGE%" == "true" (
|
|
|
|
|
set PYTEST_ARGS=%PYTEST_ARGS% --cov sklearn
|
2019-02-22 04:00:21 +08:00
|
|
|
)
|
2019-03-01 21:12:39 +08:00
|
|
|
|
|
|
|
|
pytest --junitxml=%JUNITXML% --showlocals --durations=20 %PYTEST_ARGS% --pyargs sklearn
|