xonsh/.appveyor_test.cmd
2018-12-05 19:45:58 -05:00

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
)