azure-pipelines.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. UsageNoNodeJS:
  21. group: 'nonode'
  22. Docs:
  23. group: 'docs'
  24. steps:
  25. - task: UsePythonVersion@0
  26. inputs:
  27. versionSpec: '$(python.version)'
  28. architecture: 'x64'
  29. - task: Bash@3
  30. displayName: 'install'
  31. inputs:
  32. targetType: 'filePath'
  33. filePath: ./scripts/ci_install.sh
  34. - script: python -m pip install virtualenv
  35. - task: Bash@3
  36. displayName: 'script'
  37. inputs:
  38. targetType: 'filePath'
  39. filePath: ./scripts/ci_script.sh
  40. - task: PublishTestResults@2
  41. displayName: 'publish test results'
  42. condition: variables['testResultsFiles']
  43. inputs:
  44. testResultsFiles: '$(testResultsFiles)'
  45. testRunTitle: 'Linux - $(group)'
  46. mergeTestResults: true
  47. - job: 'Windows'
  48. pool:
  49. vmImage: 'vs2017-win2016'
  50. variables:
  51. python.version: '3.6'
  52. strategy:
  53. matrix:
  54. JS:
  55. name: 'javascript'
  56. testResultsFiles: 'tests/**/junit.xml'
  57. python.version: '3.5'
  58. Python:
  59. name: 'python'
  60. Integrity:
  61. name: 'integrity'
  62. steps:
  63. - task: UsePythonVersion@0
  64. displayName: 'install python'
  65. inputs:
  66. versionSpec: '$(python.version)'
  67. architecture: 'x64'
  68. - script: powershell Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem -Name LongPathsEnabled -Value 1
  69. displayName: 'set long path'
  70. - script: 'python -m pip install -U pip'
  71. displayName: 'upgrade pip'
  72. - script: 'pip install --upgrade -e ".[test]"'
  73. displayName: 'install pip deps'
  74. - script: 'jupyter kernelspec list'
  75. displayName: 'list kernels'
  76. - script: 'jlpm versions'
  77. displayName: 'list jlpm versions'
  78. - script: 'jlpm config current'
  79. displayName: 'list jlpm config'
  80. - script: cmd /E:ON /V:ON /C .\\scripts\\appveyor.cmd
  81. displayName: 'run tests'
  82. - task: PublishTestResults@2
  83. displayName: 'publish results'
  84. condition: variables['testResultsFiles']
  85. inputs:
  86. testResultsFiles: '$(testResultsFiles)'
  87. testRunTitle: 'Windows - $(name)'
  88. mergeTestResults: true
  89. trigger:
  90. branches:
  91. include:
  92. - master
  93. - 1.x