.appveyor.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. environment:
  2. # Python version used
  3. MICROPY_CPYTHON3: c:/python34/python.exe
  4. init:
  5. # Set build version number to commit to be travis-like
  6. - ps: Update-AppveyorBuild -Version $env:appveyor_repo_commit.substring(0,8)
  7. configuration:
  8. - Debug
  9. - Release
  10. platform:
  11. - x86
  12. - x64
  13. build:
  14. project: ports/windows/micropython.vcxproj
  15. verbosity: normal
  16. test_script:
  17. - cmd: >-
  18. cd tests
  19. %MICROPY_CPYTHON3% run-tests
  20. # After the build/test phase for the MSVC build completes,
  21. # build and test with mingw-w64, release versions only.
  22. after_test:
  23. - ps: |
  24. if ($env:configuration -eq 'Debug') {
  25. return
  26. }
  27. $env:MSYSTEM = if ($platform -eq 'x86') {'MINGW32'} else {'MINGW64'}
  28. $env:CHERE_INVOKING = 'enabled_from_arguments'
  29. cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'ports/windows')
  30. C:\msys64\usr\bin\bash.exe -l -c "make -B -j4 V=1"
  31. if ($LASTEXITCODE -ne 0) {
  32. throw "$env:MSYSTEM build exited with code $LASTEXITCODE"
  33. }
  34. cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'tests')
  35. & $env:MICROPY_CPYTHON3 run-tests -e math_fun -e float2int_double -e float_parse -e math_domain_special
  36. if ($LASTEXITCODE -ne 0) {
  37. throw "$env:MSYSTEM tests exited with code $LASTEXITCODE"
  38. }
  39. skip_tags: true
  40. deploy: off
  41. nuget:
  42. disable_publish_on_pr: true