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