mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
14 lines
512 B
Batchfile
14 lines
512 B
Batchfile
@ECHO OFF
|
|
|
|
IF "%XONSH_TEST_ENV%" == "MSYS2" (
|
|
echo "MSYS2 Environment"
|
|
REM We monkey path `py._path.local.PosixPath` here such that it does not
|
|
REM allow to create symlinks which are not supported by MSYS2 anyway. As a
|
|
REM result the other pytest code uses a workaround.
|
|
SET "PATH=%MSYS2_PATH%\usr\bin;%PATH%"
|
|
call bash.exe -c "/usr/bin/xonsh run-tests.xsh" || EXIT 1
|
|
) ELSE (
|
|
echo "Windows Environment"
|
|
SET "PATH=%PYTHON%\Scripts;%PATH%"
|
|
call xonsh run-tests.xsh || EXIT 1
|
|
)
|