azure-pipelines.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. - task: Bash@3
  46. displayName: 'after_success'
  47. inputs:
  48. targetType: 'filePath'
  49. filePath: ./scripts/ci_after_success.sh
  50. - job: 'Windows'
  51. pool:
  52. vmImage: 'vs2017-win2016'
  53. variables:
  54. python.version: '3.6'
  55. strategy:
  56. matrix:
  57. JS:
  58. name: 'javascript'
  59. testResultsFiles: 'tests/**/junit.xml'
  60. python.version: '3.5'
  61. Python:
  62. name: 'python'
  63. Integrity:
  64. name: 'integrity'
  65. steps:
  66. - task: UsePythonVersion@0
  67. displayName: 'install python'
  68. inputs:
  69. versionSpec: '$(python.version)'
  70. architecture: 'x64'
  71. - script: powershell Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem -Name LongPathsEnabled -Value 1
  72. displayName: 'set long path'
  73. - script: 'python -m pip install -U pip'
  74. displayName: 'upgrade pip'
  75. - script: 'pip install --upgrade -e ".[test]"'
  76. displayName: 'install pip deps'
  77. - script: 'jupyter kernelspec list'
  78. displayName: 'list kernels'
  79. - script: 'jlpm versions'
  80. displayName: 'list jlpm versions'
  81. - script: 'jlpm config current'
  82. displayName: 'list jlpm config'
  83. - script: cmd /E:ON /V:ON /C .\\scripts\\appveyor.cmd
  84. displayName: 'run tests'
  85. - task: PublishTestResults@2
  86. displayName: 'publish results'
  87. condition: variables['testResultsFiles']
  88. inputs:
  89. testResultsFiles: '$(testResultsFiles)'
  90. testRunTitle: 'Windows - $(name)'
  91. mergeTestResults: true