Quellcode durchsuchen

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

default_compile_flags
vector-of-bool vor 4 Jahren
Ursprung
Commit
8e77c2d2ad
2 geänderte Dateien mit 12 neuen und 11 gelöschten Zeilen
  1. +2
    -1
      azure-pipelines.yml
  2. +10
    -10
      tools/ci.py

+ 2
- 1
azure-pipelines.yml Datei anzeigen

@@ -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 Datei anzeigen

@@ -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/',
])


Laden…
Abbrechen
Speichern