Browse Source

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

default_compile_flags
vector-of-bool 4 years ago
parent
commit
8e77c2d2ad
2 changed files with 12 additions and 11 deletions
  1. +2
    -1
      azure-pipelines.yml
  2. +10
    -10
      tools/ci.py

+ 2
- 1
azure-pipelines.yml View File

- pwsh: tools\get-win-openssl.ps1 - pwsh: tools\get-win-openssl.ps1
displayName: Get OpenSSL for Windows displayName: Get OpenSSL for Windows
- script: python -m pip install pytest pytest-xdist - script: python -m pip install pytest pytest-xdist
pytest-asyncio semver typing-extensions
displayName: Install Python deps displayName: Install Python deps
- script: | - script: |
echo Loading VS environment echo Loading VS environment
displayName: Get GCC 9 displayName: Get GCC 9
- script: brew install openssl@1.1 - script: brew install openssl@1.1
displayName: Install OpenSSL 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 displayName: Get Python Dependencies
- script: make macos-ci - script: make macos-ci
displayName: Build and Test displayName: Build and Test

+ 10
- 10
tools/ci.py View File

new_cat_path.unlink() new_cat_path.unlink()
if new_repo_dir.is_dir(): if new_repo_dir.is_dir():
shutil.rmtree(new_repo_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!') print('Bootstrap test PASSED!')


basetemp = Path('/tmp/dds-ci')
basetemp.mkdir(exist_ok=True, parents=True)
return pytest.main([ return pytest.main([
'-v', '-v',
'--durations=10', '--durations=10',
f'--basetemp={paths.BUILD_DIR / "_tmp"}',
'-n', '-n',
str(multiprocessing.cpu_count() + 2), 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/', 'tests/',
]) ])



Loading…
Cancel
Save