瀏覽代碼

Install pytest deps on macos and win, and qualifiy the basetemp path

default_compile_flags
vector-of-bool 4 年之前
父節點
當前提交
8e77c2d2ad
共有 2 個檔案被更改,包括 12 行新增11 行删除
  1. +2
    -1
      azure-pipelines.yml
  2. +10
    -10
      tools/ci.py

+ 2
- 1
azure-pipelines.yml 查看文件

@@ -20,6 +20,7 @@ stages:
- pwsh: tools\get-win-openssl.ps1
displayName: Get OpenSSL for Windows
- script: python -m pip install pytest pytest-xdist
pytest-asyncio semver typing-extensions
displayName: Install Python deps
- script: |
echo Loading VS environment
@@ -53,7 +54,7 @@ stages:
displayName: Get GCC 9
- script: brew install openssl@1.1
displayName: Install OpenSSL
- script: python3 -m pip install pytest pytest-xdist
- script: python3 -m pip install pytest pytest-xdist pytest-asyncio semver typing-extensions
displayName: Get Python Dependencies
- script: make macos-ci
displayName: Build and Test

+ 10
- 10
tools/ci.py 查看文件

@@ -119,23 +119,23 @@ def main(argv: Sequence[str]) -> int:
new_cat_path.unlink()
if new_repo_dir.is_dir():
shutil.rmtree(new_repo_dir)
dds_build(
paths.CUR_BUILT_DDS,
toolchain=opts.toolchain,
more_flags=[
f'--repo-dir={new_repo_dir}',
f'--catalog={new_cat_path}',
'--add-repo=https://dds.pizza/repo',
])
dds_build(paths.CUR_BUILT_DDS,
toolchain=opts.toolchain,
more_flags=[
f'--repo-dir={new_repo_dir}',
f'--catalog={new_cat_path}',
'--add-repo=https://dds.pizza/repo',
])
print('Bootstrap test PASSED!')

basetemp = Path('/tmp/dds-ci')
basetemp.mkdir(exist_ok=True, parents=True)
return pytest.main([
'-v',
'--durations=10',
f'--basetemp={paths.BUILD_DIR / "_tmp"}',
'-n',
str(multiprocessing.cpu_count() + 2),
'--basetemp=/tmp', # Force to use a top-level /tmp dir. On Windows this prevents paths from begin too long
f'--basetemp={basetemp}', # Force to use a top-level /tmp dir. On Windows this prevents paths from begin too long
'tests/',
])


Loading…
取消
儲存