azure-pipelines.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. trigger:
  2. - master
  3. pr:
  4. autoCancel: true
  5. branches:
  6. include:
  7. - master
  8. jobs:
  9. - job: WhatsNewUpdate
  10. displayName: 'What s New Update'
  11. pool:
  12. vmImage: 'Ubuntu-16.04'
  13. demands: npm
  14. steps:
  15. - task: Npm@1
  16. displayName: 'npm install'
  17. inputs:
  18. workingDir: Tools/Gulp
  19. verbose: false
  20. - script: 'gulp tests-whatsnew'
  21. workingDirectory: Tools/Gulp
  22. displayName: 'Whats new'
  23. env:
  24. AZURE_PULLREQUESTID: $(System.PullRequest.PullRequestId)
  25. - job: DocumentationCheck
  26. displayName: 'Documentation Check'
  27. pool:
  28. vmImage: 'Ubuntu-16.04'
  29. demands: npm
  30. steps:
  31. - task: Npm@1
  32. displayName: 'npm install'
  33. inputs:
  34. workingDir: Tools/Gulp
  35. verbose: false
  36. - script: 'gulp typedoc-check'
  37. workingDirectory: Tools/Gulp
  38. displayName: 'Typedoc check'
  39. - job: Linting
  40. pool:
  41. vmImage: 'Ubuntu-16.04'
  42. demands: npm
  43. steps:
  44. - task: Npm@1
  45. displayName: 'npm install'
  46. inputs:
  47. workingDir: Tools/Gulp
  48. verbose: false
  49. - script: 'gulp fullLint'
  50. workingDirectory: Tools/Gulp
  51. displayName: 'Full Lint'
  52. - job: Build
  53. pool:
  54. vmImage: 'Ubuntu-16.04'
  55. demands: npm
  56. steps:
  57. - task: Npm@1
  58. displayName: 'npm install'
  59. inputs:
  60. workingDir: Tools/Gulp
  61. verbose: false
  62. - script: 'gulp typescript-all'
  63. workingDirectory: Tools/Gulp
  64. displayName: 'Typescript all'
  65. - job: Tests
  66. pool:
  67. vmImage: 'Ubuntu-16.04'
  68. demands: npm
  69. steps:
  70. - task: Npm@1
  71. displayName: 'npm install'
  72. inputs:
  73. workingDir: Tools/Gulp
  74. verbose: false
  75. - script: 'gulp typescript-all'
  76. workingDirectory: Tools/Gulp
  77. displayName: 'Typescript all'
  78. - script: 'gulp tests-babylon-unit'
  79. workingDirectory: Tools/Gulp
  80. displayName: 'Unit Tests'
  81. - script: |
  82. export DISPLAY=:99
  83. Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
  84. sleep 3 # give xvfb some time to start
  85. gulp tests-validation-virtualscreen
  86. workingDirectory: Tools/Gulp
  87. displayName: 'Visual Tests'
  88. - job: ViewerTests
  89. displayName: 'Viewer Tests'
  90. pool:
  91. vmImage: 'Ubuntu-16.04'
  92. demands: npm
  93. steps:
  94. - task: Npm@1
  95. displayName: 'npm install'
  96. inputs:
  97. workingDir: Tools/Gulp
  98. verbose: false
  99. - script: 'gulp typescript-all'
  100. workingDirectory: Tools/Gulp
  101. displayName: 'Typescript all'
  102. - script: 'gulp tests-viewer-unit'
  103. workingDirectory: Tools/Gulp
  104. displayName: 'Unit Tests'
  105. - script: |
  106. export DISPLAY=:99
  107. Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
  108. sleep 3 # give xvfb some time to start
  109. gulp tests-viewer-validation-virtualscreen
  110. workingDirectory: Tools/Gulp
  111. displayName: 'Visual Tests'