瀏覽代碼

Use a different temp basedir for pytest to prevent long paths

default_compile_flags
vector-of-bool 5 年之前
父節點
當前提交
8c5c462fba
共有 2 個文件被更改,包括 15 次插入6 次删除
  1. +4
    -3
      azure-pipelines.yml
  2. +11
    -3
      tools/ci.py

+ 4
- 3
azure-pipelines.yml 查看文件

@@ -8,10 +8,11 @@ jobs:
steps:
- script: |
echo Loading VS environment
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 || exit 1
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\vsdevcmd" -arch=x64 || exit 1
echo Executing Build and Tests
python -m pip install pytest pytest-xdist
python -u tools/ci.py -B download --cxx cl.exe -T tools\\msvc.dds -T2 tools\\msvc.p2.dds || exit 1
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f || exit 1
python -m pip install pytest pytest-xdist || exit 1
python -u tools/ci.py -B download --cxx cl.exe -T tools\msvc.dds -T2 tools\msvc.p2.dds || exit 1
displayName: Full CI
- publish: _build/dds.exe
artifact: DDS Executable - Windows VS2019

+ 11
- 3
tools/ci.py 查看文件

@@ -114,9 +114,17 @@ def main(argv: Sequence[str]) -> int:
self_deps_build(paths.CUR_BUILT_DDS, opts.toolchain_2,
paths.SELF_TEST_REPO_DIR,
paths.PROJECT_ROOT / 'remote.dds')
self_build(paths.CUR_BUILT_DDS, toolchain=opts.toolchain, lmi_path=paths.BUILD_DIR / 'INDEX.lmi')

return pytest.main(['-v', '--durations=10', '-n4'])
self_build(
paths.CUR_BUILT_DDS,
toolchain=opts.toolchain,
lmi_path=paths.BUILD_DIR / 'INDEX.lmi')

return pytest.main([
'-v',
'--durations=10',
f'--basetemp={paths.BUILD_DIR / "_tmp"}',
'-n4',
])


if __name__ == "__main__":

Loading…
取消
儲存