File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -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
}
Original file line number Diff line number Diff line change 42
42
<QstrDependencies Include =" $(PyVariantDir)mpconfigvariant.h" />
43
43
</ItemGroup >
44
44
45
+ <!-- Helper for getting resulting executable path since it depends on other properties. -->
46
+ <Target Name =" ShowTargetPath" >
47
+ <Message Text =" $(TargetPath)" Importance =" high" />
48
+ </Target >
49
+
45
50
<!-- Copy PyOutputFiles to their target destination.
46
51
To force this when switching between platforms/configurations which are already up-to-date (and as such,
47
52
for which a build wouldn't even start because all outputs are effectively newer than the inputs)
You can’t perform that action at this time.
0 commit comments