xonsh/.appveyor_test.cmd

13 lines
563 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.
call %MSYS2_PATH%\usr\bin\bash.exe -c "/usr/bin/python -u -c 'import py._path.local; del py._path.local.PosixPath.mksymlinkto; import pytest; raise SystemExit(pytest.main())'" || EXIT 1
2017-12-31 14:41:34 +01:00
) ELSE (
echo "Windows Environment"
call %PYTHON%\Scripts\py.test || EXIT 1
)