@@ -18,29 +18,30 @@ jobs:
18
18
choco --version
19
19
displayName: "Install Chocolatey"
20
20
21
- # Install Miniconda and remove Python 2.7 from path
21
+ # Install Miniconda
22
22
- script : |
23
- echo '%PATH%'
24
- echo '%PYTHONPATH%'
25
- set PATH=%PATH:C:\Python27;=%
26
- set PATH=%PATH:C:\Python27\Scripts;=%
27
- echo '%PATH%'
28
- echo '%PYTHONPATH%'
23
+ echo 'PATH before %PATH%'
24
+ echo 'PYTHONPATH before %PYTHONPATH%'
29
25
choco install miniconda3 --yes
26
+ echo 'PATH after %PATH%'
27
+ echo 'PYTHONPATH after %PYTHONPATH%'
30
28
set PATH=C:\tools\miniconda3\Scripts;C:\tools\miniconda3;C:\tools\miniconda3\Library\bin;%PATH%
31
29
echo '##vso[task.setvariable variable=PATH]%PATH%'
30
+ echo 'LIB before %LIB%'
32
31
set LIB=C:\tools\miniconda3\Library\lib;%LIB%
32
+ echo 'LIB after %LIB%'
33
33
echo '##vso[task.setvariable variable=LIB]%LIB%'
34
34
conda --version
35
35
displayName: "Install Miniconda"
36
36
37
37
# Configure Miniconda
38
38
- script : |
39
- echo '%PATH%'
40
- echo '%PYTHONPATH%'
41
39
conda config --set always_yes yes
42
40
conda config --append channels conda-forge
43
41
conda info
42
+ echo 'PATH again %PATH%'
43
+ echo 'PYTHONPATH again %PYTHONPATH%'
44
+ echo 'LIB again %LIB%'
44
45
displayName: "Configure Miniconda"
45
46
46
47
# Create conda enviroment
@@ -103,14 +104,15 @@ jobs:
103
104
104
105
# Test (Google test)
105
106
- script : |
106
- setlocal EnableDelayedExpansion
107
+ echo 'PATH and again %PATH%'
108
+ echo 'PYTHONPATH and again %PYTHONPATH%'
109
+ echo 'LIB and again %LIB%'
107
110
.\test_xtensor_python
108
111
displayName: "Test xtensor-python (Google test)"
109
112
workingDirectory: $(Build.BinariesDirectory)/build/test
110
113
111
114
# Test (pytest)
112
115
- script : |
113
- setlocal EnableDelayedExpansion
114
116
py.test -s
115
117
displayName: "Test xtensor-python (pytest)"
116
118
workingDirectory: $(Build.BinariesDirectory)
0 commit comments