File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,10 @@ environment:
4
4
matrix :
5
5
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
6
6
MICROPY_CPYTHON3 : c:/python34/python.exe
7
- MICROPYPATH : c:/projects/micropython/ports/windows
8
7
FullTypeCheck : 0
9
8
BuildMsys2Version : 1
10
9
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
11
10
MICROPY_CPYTHON3 : c:/python34/python.exe
12
- MICROPYPATH : c:/projects/micropython/ports/windows
13
11
FullTypeCheck : 1
14
12
BuildMsys2Version : 0
15
13
- APPVEYOR_BUILD_WORKER_IMAGE : Ubuntu
83
81
84
82
test_script :
85
83
- ps : |
84
+ $env:MICROPY_MICROPYTHON = (msbuild ../micropython/ports/windows/micropython.vcxproj /nologo /v:m "/p:platform=$env:platform;configuration=$env:configuration" /t:ShowTargetPath).Trim()
85
+ # Some versions of msbuild output 2 lines, one with only whitespace, in which case we assigned an array
86
+ # of strings to $env:MICROPY_MICROPYTHON. And because environment variables must be strings, PS does
87
+ # that by concatenating the array elements. So: trim again to leave only the path.
88
+ $env:MICROPY_MICROPYTHON = $env:MICROPY_MICROPYTHON.Trim()
89
+ # The .pyd is in this directory as well.
90
+ $env:MICROPYPATH = Split-Path -Parent $env:MICROPY_MICROPYTHON
91
+
86
92
& $env:MICROPY_CPYTHON3 ../micropython/tests/run-tests.py --keep-path -d tests/py
87
93
88
94
if ($env:BuildMsys2Version -eq 1 -and $env:platform -eq 'x64' -and $env:configuration -eq 'Release') {
You can’t perform that action at this time.
0 commit comments