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.

65 lines
2.5KB

  1. # Refer: https://aka.ms/yaml
  2. jobs:
  3. - job: Windows_MSVC_VS2017
  4. pool:
  5. vmImage: vs2017-win2016
  6. steps:
  7. - script: |
  8. echo Loading VS environment
  9. call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\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/ddslim.exe
  14. artifact: DDSLiM Executable - Windows VS2017
  15. - script: |
  16. echo Loading VS environment
  17. call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 || exit 1
  18. python -u tools/test.py --exe _build/ddslim -T:msvc || exit 1
  19. displayName: Smoke Tests
  20. - job: Windows_MSVC_VS2019
  21. pool:
  22. vmImage: windows-2019
  23. steps:
  24. - script: |
  25. echo Loading VS environment
  26. call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 || exit 1
  27. echo Executing build/test script
  28. python -u tools/build.py --cxx cl.exe --test --static || exit 1
  29. displayName: Build and Run Unit Tests
  30. - publish: _build/ddslim.exe
  31. artifact: DDSLiM Executable - Windows VS2019
  32. - script: |
  33. echo Loading VS environment
  34. call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 || exit 1
  35. python -u tools/test.py --exe _build/ddslim -T:msvc || exit 1
  36. displayName: Smoke Tests
  37. - job: Linux_GCC
  38. pool:
  39. vmImage: ubuntu-18.04
  40. steps:
  41. - script: sudo apt install -y python3-minimal g++-8
  42. displayName: Prepare System
  43. - script: python3 -u tools/build.py --cxx g++-8 --test --static
  44. displayName: Build and Run Unit Tests
  45. - publish: _build/ddslim
  46. artifact: DDSLiM Executable - Linux
  47. - script: python3 -u tools/test.py --exe _build/ddslim -T:gcc-8
  48. displayName: Smoke Tests
  49. - job: macOS
  50. pool:
  51. vmImage: macOS-10.14
  52. steps:
  53. - script: brew install gcc@8
  54. displayName: Prepare System
  55. - script: python3 -u tools/build.py --cxx g++-8 --test
  56. displayName: Build and Run Unit Tests
  57. - publish: _build/ddslim
  58. artifact: DDSLiM Executable - macOS
  59. - script: python3 -u tools/test.py --exe _build/ddslim -T:gcc-8
  60. displayName: Smoke Tests