azure-pipelines.yml 2.8 KB

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