@@ -5,6 +5,10 @@ skip_tags: true
5
5
environment :
6
6
# Python version used
7
7
MICROPY_CPYTHON3 : c:/python38/python.exe
8
+ # The variants.
9
+ matrix :
10
+ - PyVariant : dev
11
+ - PyVariant : standard
8
12
9
13
init :
10
14
# Set build version number to commit to be travis-like
@@ -18,6 +22,12 @@ platform:
18
22
- x86
19
23
- x64
20
24
25
+ matrix :
26
+ # One debug build is enough.
27
+ exclude :
28
+ - configuration : Debug
29
+ PyVariant : dev
30
+
21
31
before_build :
22
32
- ps : |
23
33
@"
36
46
37
47
test_script :
38
48
- ps : |
49
+ $env:MICROPY_MICROPYTHON=(msbuild ports\windows\micropython.vcxproj /nologo /v:m /t:ShowTargetPath).Trim()
39
50
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'tests')
40
51
& $env:MICROPY_CPYTHON3 run-tests.py
41
52
if ($LASTEXITCODE -ne 0) {
@@ -58,7 +69,7 @@ after_test:
58
69
$env:MSYSTEM = if ($platform -eq 'x86') {'MINGW32'} else {'MINGW64'}
59
70
$env:CHERE_INVOKING = 'enabled_from_arguments'
60
71
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'ports/windows')
61
- C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1"
72
+ C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1 VARIANT=$($env:PyVariant) "
62
73
if ($LASTEXITCODE -ne 0) {
63
74
throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
64
75
}
@@ -68,7 +79,7 @@ after_test:
68
79
throw "$env:MSYSTEM mpy_cross build exited with code $LASTEXITCODE"
69
80
}
70
81
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'ports/windows')
71
- C:\msys64\usr\bin\bash.exe -l -c "make V=1 test_full"
82
+ C:\msys64\usr\bin\bash.exe -l -c "make V=1 test_full VARIANT=$($env:PyVariant) "
72
83
if ($LASTEXITCODE -ne 0) {
73
84
& $env:MICROPY_CPYTHON3 run-tests.py --print-failures
74
85
throw "Test failure"
0 commit comments