summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2018-01-03 21:10:03 +0100
committerDamien George <damien.p.george@gmail.com>2018-01-31 16:09:15 +1100
commitdf952633ef806d848ea75148a7be52e6a4e7f9fe (patch)
treea411a55669ab0b1fc8dc5fe2b21fae574ad5d04c
parent1ed2c23efb3dc4d12f07e10e20f6194da4babf16 (diff)
windows: Add Appveyor CI builds for windows mingw port
Build and test 32bit and 64bit versions of the windows port using gcc from mingw-w64. Note a bunch of tests which rely on floating point math/printing have been disabled for now since they fail.
-rw-r--r--ports/windows/.appveyor.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/ports/windows/.appveyor.yml b/ports/windows/.appveyor.yml
index a82cf5adc..795330eff 100644
--- a/ports/windows/.appveyor.yml
+++ b/ports/windows/.appveyor.yml
@@ -24,6 +24,26 @@ test_script:
%MICROPY_CPYTHON3% run-tests
+# After the build/test phase for the MSVC build completes,
+# build and test with mingw-w64, release versions only.
+after_test:
+- ps: |
+ if ($env:configuration -eq 'Debug') {
+ return
+ }
+ $env:MSYSTEM = if ($platform -eq 'x86') {'MINGW32'} else {'MINGW64'}
+ $env:CHERE_INVOKING = 'enabled_from_arguments'
+ cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'ports/windows')
+ C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1"
+ if ($LASTEXITCODE -ne 0) {
+ throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
+ }
+ cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'tests')
+ & $env:MICROPY_CPYTHON3 run-tests -e math_fun -e float2int_double -e float_parse -e math_domain_special
+ if ($LASTEXITCODE -ne 0) {
+ throw "$env:MSYSTEM tests exited with code $LASTEXITCODE"
+ }
+
skip_tags: true
deploy: off