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