azure-pipelines.yml 742 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. trigger:
  2. - master
  3. strategy:
  4. matrix:
  5. linux:
  6. imageName: 'ubuntu-16.04'
  7. mac:
  8. imageName: 'macos-10.13'
  9. windows:
  10. imageName: 'vs2017-win2016'
  11. pool:
  12. vmImage: $(imageName)
  13. steps:
  14. - task: NodeTool@0
  15. inputs:
  16. versionSpec: '8.x'
  17. displayName: 'Install Node.js'
  18. - bash: |
  19. /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
  20. echo ">>> Started xvfb"
  21. displayName: Start xvfb
  22. condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
  23. - bash: |
  24. echo ">>> Compile vscode-test"
  25. yarn && yarn compile
  26. echo ">>> Compiled vscode-test"
  27. cd sample
  28. echo ">>> Run sample integration test"
  29. yarn && yarn compile && yarn test
  30. displayName: Run Tests
  31. env:
  32. DISPLAY: ':99.0'