You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

azure-pipelines.yml 1.7KB

5 年之前
5 年之前
5 年之前
5 年之前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Refer: https://aka.ms/yaml
  2. jobs:
  3. - job: Windows_MSVC_VS2019
  4. pool:
  5. vmImage: windows-2019
  6. steps:
  7. - script: |
  8. echo Loading VS environment
  9. call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 || exit 1
  10. echo Executing build/test script
  11. python -u tools/build.py --cxx cl.exe --test --static || exit 1
  12. displayName: Build and Run Unit Tests
  13. - publish: _build/dds.exe
  14. artifact: DDS Executable - Windows VS2019
  15. - script: |
  16. echo Loading VS environment
  17. call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 || exit 1
  18. python -u tools/test.py --exe _build/dds.exe -T tools/msvc.dds || exit 1
  19. displayName: Smoke Tests
  20. - job: Linux_GCC8
  21. pool:
  22. vmImage: ubuntu-18.04
  23. steps:
  24. - script: sudo apt update -y && sudo apt install -y python3-minimal g++-8
  25. displayName: Prepare System
  26. - script: python3 -u tools/build.py --cxx g++-8 --test --static
  27. displayName: Build and Run Unit Tests
  28. - publish: _build/dds
  29. artifact: DDS Executable - Linux
  30. - script: python3 -u tools/test.py --exe _build/dds -T:gcc-8
  31. displayName: Smoke Tests
  32. - job: macOS_GCC8
  33. pool:
  34. vmImage: macOS-10.14
  35. steps:
  36. - script: brew install gcc@8
  37. displayName: Prepare System
  38. - script: python3 -u tools/build.py --cxx g++-8 --test
  39. displayName: Build and Run Unit Tests
  40. - publish: _build/dds
  41. artifact: DDS Executable - macOS
  42. - script: python3 -u tools/test.py --exe _build/dds -T:gcc-8
  43. displayName: Smoke Tests