appveyor.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. environment:
  2. matrix:
  3. - ARCH: "x86_64"
  4. branches:
  5. only:
  6. - master
  7. - /release-.*/
  8. skip_commits:
  9. message: /\[av skip\]/
  10. notifications:
  11. - provider: Email
  12. on_build_success: false
  13. on_build_failure: false
  14. on_build_status_changed: false
  15. init:
  16. - git config --global core.autocrlf input
  17. build_script:
  18. - ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
  19. https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
  20. Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
  21. throw "There are newer queued builds for this pull request, failing early." }
  22. - if %ARCH%==i686 ( set EXCEPT=dwarf ) else set EXCEPT=seh
  23. - if %ARCH%==i686 ( set MINGW=mingw32 ) else set MINGW=mingw64
  24. - set PATH=C:\MinGW-w64\%ARCH%-6.3.0-posix-%EXCEPT%-rt_v5-rev1\%MINGW%\bin;%PATH%
  25. - mingw32-make.exe ARCH=%ARCH% CC=%ARCH%-w64-mingw32-gcc
  26. - mingw32-make.exe test ARCH=%ARCH% CC=%ARCH%-w64-mingw32-gcc
  27. on_finish:
  28. # Uncomment the following line for interactive debugging, which
  29. # will print login data for a temporary remote session after the
  30. # build. This requires an RDP version 6 client, e.g., FreeRDP.
  31. #- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))