@@ -2,7 +2,7 @@ parameters:
2
2
platforms :
3
3
- name : Linux
4
4
vmImage : ubuntu-16.04
5
- activate : source activate
5
+ activate : source activate base
6
6
- name : MacOSX
7
7
vmImage : macos-10.14
8
8
activate : source activate
@@ -25,7 +25,7 @@ parameters:
25
25
js_cov_packages :
26
26
- jupyterlab-go-to-definition
27
27
- jupyterlab-lsp
28
- env_update : conda env update -n jupyterlab-lsp --file env-test.yml --quiet
28
+ env_update : conda env update -n base --file env-test.yml --quiet
29
29
lab_link : jupyter labextension link --debug --no-build $(LINKED_EXTENSIONS)
30
30
lab_ext : jupyter labextension install --debug --no-build $(FIRST_PARTY_LABEXTENSIONS)
31
31
lab_build : jupyter lab build --debug --dev-build=False --minimize=True
@@ -40,32 +40,33 @@ jobs:
40
40
- template : steps.conda.yml
41
41
parameters :
42
42
name : ${{ platform.name }}
43
+ packages : " 'python${{ python.spec }}'"
43
44
44
45
- script : ${{ platform.activate }} && cd ci && python env_template.py "${{ python.spec }}" "${{ python.lab }}" "${{ python.nodejs }}"
45
46
displayName : generate env with python, lab, and nodejs version
46
47
47
48
- script : ${{ parameters.env_update }} || ${{ parameters.env_update }} || ${{ parameters.env_update }}
48
49
displayName : update conda environment with test dependencies
49
50
50
- - script : conda info && conda list -n jupyterlab-lsp
51
+ - script : conda info && conda list -n ${{ parameters.env_name }}
51
52
displayName : list conda packages and info
52
53
53
- - script : ${{ platform.activate }} jupyterlab-lsp && jlpm || jlpm || jlpm
54
+ - script : ${{ platform.activate }} && jlpm || jlpm || jlpm
54
55
displayName : install npm dependencies
55
56
56
- - script : ${{ platform.activate }} jupyterlab-lsp && jlpm build
57
+ - script : ${{ platform.activate }} && jlpm build
57
58
displayName : build typescript
58
59
59
- - script : ${{ platform.activate }} jupyterlab-lsp && python setup.py sdist bdist_wheel
60
+ - script : ${{ platform.activate }} && python setup.py sdist bdist_wheel
60
61
displayName : build python distributions
61
62
62
- - script : ${{ platform.activate }} jupyterlab-lsp && jlpm lerna run bundle
63
+ - script : ${{ platform.activate }} && jlpm lerna run bundle
63
64
displayName : build npm bundles
64
65
65
- - script : ${{ platform.activate }} jupyterlab-lsp && cd dist && python -m pip install jupyter_lsp-$(PY_JLSP_VERSION)-py3-none-any.whl --no-deps
66
+ - script : ${{ platform.activate }} && cd dist && python -m pip install jupyter_lsp-$(PY_JLSP_VERSION)-py3-none-any.whl --no-deps
66
67
displayName : install python wheel
67
68
68
- - script : ${{ platform.activate }} jupyterlab-lsp && jlpm test
69
+ - script : ${{ platform.activate }} && jlpm test
69
70
displayName : run frontend unit tests
70
71
71
72
- task : PublishTestResults@2
@@ -84,28 +85,28 @@ jobs:
84
85
summaryFileLocation : ' packages/${{ js_package }}/coverage/cobertura-coverage.xml'
85
86
condition : always()
86
87
87
- - script : ${{ platform.activate }} jupyterlab-lsp && jupyter serverextension list
88
+ - script : ${{ platform.activate }} && jupyter serverextension list
88
89
displayName : list server extensions
89
90
90
- - script : ${{ platform.activate }} jupyterlab-lsp && python scripts/utest.py --test-run-title="Pytest ${{ platform.name }}${{ python.name }}"
91
+ - script : ${{ platform.activate }} && python scripts/utest.py --test-run-title="Pytest ${{ platform.name }}${{ python.name }}"
91
92
displayName : run python tests
92
93
93
- - script : ${{ platform.activate }} jupyterlab-lsp && ${{ parameters.lab_link }} || ${{ parameters.lab_link }} || ${{ parameters.lab_link }}
94
+ - script : ${{ platform.activate }} && ${{ parameters.lab_link }} || ${{ parameters.lab_link }} || ${{ parameters.lab_link }}
94
95
displayName : install support packages
95
96
96
- - script : ${{ platform.activate }} jupyterlab-lsp && ${{ parameters.lab_ext }} || ${{ parameters.lab_ext }} || ${{ parameters.lab_ext }}
97
+ - script : ${{ platform.activate }} && ${{ parameters.lab_ext }} || ${{ parameters.lab_ext }} || ${{ parameters.lab_ext }}
97
98
displayName : install labextensions
98
99
99
- - script : ${{ platform.activate }} jupyterlab-lsp && jupyter labextension list
100
+ - script : ${{ platform.activate }} && jupyter labextension list
100
101
displayName : list labextensions before build
101
102
102
- - script : ${{ platform.activate }} jupyterlab-lsp && ${{ parameters.lab_build }} || ${{ parameters.lab_build }} || ${{ parameters.lab_build }}
103
+ - script : ${{ platform.activate }} && ${{ parameters.lab_build }} || ${{ parameters.lab_build }} || ${{ parameters.lab_build }}
103
104
displayName : build lab
104
105
105
- - script : ${{ platform.activate }} jupyterlab-lsp && jupyter labextension list
106
+ - script : ${{ platform.activate }} && jupyter labextension list
106
107
displayName : list labextensions after build
107
108
108
- - script : ${{ platform.activate }} jupyterlab-lsp && python scripts/atest.py
109
+ - script : ${{ platform.activate }} && python scripts/atest.py
109
110
displayName : run browser tests
110
111
111
112
- task : PublishTestResults@2
0 commit comments