##// END OF EJS Templates
fix env var for py38 install
Nicholas Bollweg -
Show More
@@ -1,51 +1,51 b''
1 build: false
1 build: false
2 matrix:
2 matrix:
3 fast_finish: true # immediately finish build once one of the jobs fails.
3 fast_finish: true # immediately finish build once one of the jobs fails.
4
4
5 environment:
5 environment:
6 matrix:
6 matrix:
7 - PYTHON: "C:\\Python36"
7 - PYTHON: "C:\\Python36"
8 PYTHON_VERSION: "3.6.x"
8 PYTHON_VERSION: "3.6.x"
9 PYTHON_ARCH: "32"
9 PYTHON_ARCH: "32"
10
10
11 - PYTHON: "C:\\Python36-x64"
11 - PYTHON: "C:\\Python36-x64"
12 PYTHON_VERSION: "3.6.x"
12 PYTHON_VERSION: "3.6.x"
13 PYTHON_ARCH: "64"
13 PYTHON_ARCH: "64"
14
14
15 - PYTHON: "C:\\Python37"
15 - PYTHON: "C:\\Python37"
16 PYTHON_VERSION: "3.7.x"
16 PYTHON_VERSION: "3.7.x"
17 PYTHON_ARCH: "32"
17 PYTHON_ARCH: "32"
18
18
19 - PYTHON: "C:\\Python37-x64"
19 - PYTHON: "C:\\Python37-x64"
20 PYTHON_VERSION: "3.7.x"
20 PYTHON_VERSION: "3.7.x"
21 PYTHON_ARCH: "64"
21 PYTHON_ARCH: "64"
22
22
23 - PYTHON: "C:\\Python38"
23 - PYTHON: "C:\\Python38"
24 PYTHON_VERSION: "3.8.x"
24 PYTHON_VERSION: "3.8.x"
25 PYTHON_ARCH: "32"
25 PYTHON_ARCH: "32"
26
26
27 - PYTHON: "C:\\Python38-x64"
27 - PYTHON: "C:\\Python38-x64"
28 PYTHON_VERSION: "3.8.x"
28 PYTHON_VERSION: "3.8.x"
29 PYTHON_ARCH: "64"
29 PYTHON_ARCH: "64"
30
30
31 init:
31 init:
32 - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
32 - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
33
33
34 install:
34 install:
35 - ps: |
35 - ps: |
36 Set-PSDebug -Trace 1
36 Set-PSDebug -Trace 1
37 if ($Env:PYTHON_VERSION.StartsWith("3.8")) {
37 if ($Env:PYTHON_VERSION.StartsWith("3.8")) {
38 if ($Env:PYTHON_ARCH -eq "64") {
38 if ($Env:PYTHON_ARCH -eq "64") {
39 iex "choco install python3 --version=3.8 --no-progress --params /InstallDir:$Env:PYTHON_HOME"
39 iex "choco install python3 --version=3.8 --no-progress --params /InstallDir:$Env:PYTHON"
40 } else {
40 } else {
41 iex "choco install python3 --version=3.8 --no-progress --params /InstallDir:$Env:PYTHON_HOME --x86"
41 iex "choco install python3 --version=3.8 --no-progress --params /InstallDir:$Env:PYTHON --x86"
42 }
42 }
43 }
43 }
44 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
44 - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
45 - "%CMD_IN_ENV% python -m pip install --upgrade setuptools pip"
45 - "%CMD_IN_ENV% python -m pip install --upgrade setuptools pip"
46 - "%CMD_IN_ENV% pip install nose coverage"
46 - "%CMD_IN_ENV% pip install nose coverage"
47 - "%CMD_IN_ENV% pip install .[test]"
47 - "%CMD_IN_ENV% pip install .[test]"
48 - "%CMD_IN_ENV% mkdir results"
48 - "%CMD_IN_ENV% mkdir results"
49 - "%CMD_IN_ENV% cd results"
49 - "%CMD_IN_ENV% cd results"
50 test_script:
50 test_script:
51 - "%CMD_IN_ENV% iptest --coverage xml"
51 - "%CMD_IN_ENV% iptest --coverage xml"
General Comments 0
You need to be logged in to leave comments. Login now