azure-pipelines.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. jobs:
  2. - job: 'Linux'
  3. pool:
  4. vmImage: 'ubuntu-16.04'
  5. variables:
  6. python.version: '3.6'
  7. gh.ref: github.com/jupyterlab/jupyterlab.git
  8. strategy:
  9. matrix:
  10. JS:
  11. group: 'js'
  12. testResultsFiles: 'tests/**/junit.xml'
  13. Integrity:
  14. group: 'integrity'
  15. Python:
  16. group: 'python'
  17. testResultsFiles: 'junit.xml'
  18. Usage:
  19. group: 'usage'
  20. Docs:
  21. group: 'docs'
  22. steps:
  23. - task: UsePythonVersion@0
  24. inputs:
  25. versionSpec: '$(python.version)'
  26. architecture: 'x64'
  27. - task: Bash@3
  28. displayName: 'install'
  29. inputs:
  30. targetType: 'filePath'
  31. filePath: ./scripts/ci_install.sh
  32. - script: python -m pip install virtualenv
  33. - task: Bash@3
  34. displayName: 'script'
  35. inputs:
  36. targetType: 'filePath'
  37. filePath: ./scripts/ci_script.sh
  38. - task: PublishTestResults@2
  39. displayName: 'publish test results'
  40. condition: variables['testResultsFiles']
  41. inputs:
  42. testResultsFiles: '$(testResultsFiles)'
  43. testRunTitle: 'Linux - $(group)'
  44. mergeTestResults: true
  45. - job: 'Windows'
  46. pool:
  47. vmImage: 'vs2017-win2016'
  48. variables:
  49. python.version: '3.6'
  50. strategy:
  51. matrix:
  52. JS:
  53. name: 'javascript'
  54. testResultsFiles: 'tests/**/junit.xml'
  55. python.version: '3.5'
  56. Python:
  57. name: 'python'
  58. Integrity:
  59. name: 'integrity'
  60. steps:
  61. - task: UsePythonVersion@0
  62. displayName: 'install python'
  63. inputs:
  64. versionSpec: '$(python.version)'
  65. architecture: 'x64'
  66. - script: powershell Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem -Name LongPathsEnabled -Value 1
  67. displayName: 'set long path'
  68. - script: 'python -m pip install -U pip'
  69. displayName: 'upgrade pip'
  70. - script: 'pip install --upgrade -e ".[test]"'
  71. displayName: 'install pip deps'
  72. - script: 'jupyter kernelspec list'
  73. displayName: 'list kernels'
  74. - script: 'jlpm versions'
  75. displayName: 'list jlpm versions'
  76. - script: 'jlpm config current'
  77. displayName: 'list jlpm config'
  78. - script: cmd /E:ON /V:ON /C .\\scripts\\appveyor.cmd
  79. displayName: 'run tests'
  80. - task: PublishTestResults@2
  81. displayName: 'publish results'
  82. condition: variables['testResultsFiles']
  83. inputs:
  84. testResultsFiles: '$(testResultsFiles)'
  85. testRunTitle: 'Windows - $(name)'
  86. mergeTestResults: true