xonsh/.appveyor_test.cmd

15 lines
512 B
Batchfile
Raw Normal View History

2017-12-31 14:41:34 +01:00
@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.
2018-12-05 19:45:58 -05:00
SET "PATH=%MSYS2_PATH%\usr\bin;%PATH%"
2018-12-05 19:17:26 -05:00
call bash.exe -c "/usr/bin/xonsh run-tests.xsh" || EXIT 1
2017-12-31 14:41:34 +01:00
) ELSE (
echo "Windows Environment"
2018-12-05 19:45:58 -05:00
SET "PATH=%PYTHON%\Scripts;%PATH%"
2018-12-05 19:17:26 -05:00
call xonsh run-tests.xsh || EXIT 1
2017-12-31 14:41:34 +01:00
)