2015-11-04 09:33:43 -05:00
|
|
|
version: '{build}'
|
2015-11-04 09:30:27 -05:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2022-07-03 19:32:51 -04:00
|
|
|
- 3.2
|
2015-11-04 09:30:27 -05:00
|
|
|
- WX_3_0_BRANCH
|
|
|
|
|
2017-11-25 04:46:39 -05:00
|
|
|
skip_commits:
|
|
|
|
files:
|
2021-03-02 14:21:21 -05:00
|
|
|
- demos/
|
2017-11-25 04:46:39 -05:00
|
|
|
- docs/
|
|
|
|
- interface/
|
2021-03-07 17:48:25 -05:00
|
|
|
- locale/
|
2017-11-25 04:46:39 -05:00
|
|
|
- misc/
|
2021-03-02 14:21:21 -05:00
|
|
|
- include/wx/dfb/
|
|
|
|
- src/dfb/
|
|
|
|
- include/wx/gtk/
|
|
|
|
- src/gtk/
|
|
|
|
- include/wx/gtk1/
|
|
|
|
- src/gtk1/
|
|
|
|
- include/wx/motif/
|
|
|
|
- src/motif/
|
2020-04-22 11:18:11 -04:00
|
|
|
- include/wx/osx/
|
|
|
|
- src/osx/
|
2021-03-02 14:21:21 -05:00
|
|
|
- include/wx/unix/
|
|
|
|
- src/unix/
|
|
|
|
- include/wx/x11/
|
|
|
|
- src/x11/
|
2021-03-05 13:41:05 -05:00
|
|
|
- '**/*.md'
|
2023-03-30 18:39:44 -04:00
|
|
|
- .circleci/
|
2022-01-13 19:41:14 -05:00
|
|
|
- .github/ISSUE_TEMPLATE/
|
2020-09-27 20:56:19 -04:00
|
|
|
- .github/workflows/
|
2020-04-22 09:25:31 -04:00
|
|
|
- build/tools/before_install.sh
|
2021-04-05 09:41:04 -04:00
|
|
|
- build/tools/httpbin.sh
|
2017-11-25 04:46:39 -05:00
|
|
|
|
2015-11-04 09:30:27 -05:00
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- TOOLSET: msbuild
|
|
|
|
CONFIGURATION: DLL Release
|
|
|
|
ARCH: x64
|
|
|
|
wxUSE_STL: 1
|
|
|
|
- TOOLSET: nmake
|
|
|
|
VS: '9.0'
|
|
|
|
BUILD: release
|
|
|
|
ARCH: x86
|
|
|
|
- TOOLSET: nmake
|
|
|
|
VS: '14.0'
|
|
|
|
BUILD: debug
|
|
|
|
ARCH: amd64
|
|
|
|
wxUSE_STL: 1
|
2021-01-18 19:20:02 -05:00
|
|
|
wxUSE_WEBVIEW_EDGE: 1
|
2015-11-04 09:30:27 -05:00
|
|
|
- TOOLSET: mingw
|
|
|
|
- TOOLSET: msys2
|
|
|
|
MSYSTEM: MINGW32
|
2016-10-05 04:16:30 -04:00
|
|
|
- TOOLSET: cmake
|
|
|
|
GENERATOR: 'Visual Studio 12'
|
|
|
|
SHARED: ON
|
|
|
|
CONFIGURATION: Release
|
2018-09-25 13:46:21 -04:00
|
|
|
- TOOLSET: cmake_qt
|
|
|
|
GENERATOR: 'Visual Studio 14 2015 Win64'
|
|
|
|
SHARED: ON
|
|
|
|
CONFIGURATION: Release
|
2015-11-04 09:30:27 -05:00
|
|
|
|
|
|
|
clone_depth: 50
|
|
|
|
|
2017-11-10 09:23:20 -05:00
|
|
|
install: git submodule update --init
|
|
|
|
|
2018-09-25 13:57:40 -04:00
|
|
|
init:
|
|
|
|
- ps: |
|
|
|
|
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
|
|
|
|
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
|
|
|
|
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
|
|
|
|
throw "There are newer queued builds for this pull request, failing early." }
|
|
|
|
|
2015-11-04 09:30:27 -05:00
|
|
|
before_build:
|
|
|
|
- ps: |
|
Remove the correct directory from PATH for MinGW AppVeyor builds
We need to remove the directory containing sh.exe from the PATH as
otherwise mingw32-make seems to use it and not cmd.exe for executing the
commands in the makefile, but the wrong directory was being removed in
appveyor.yml, having no effect.
Fix this and undo 5f2ccde269278860d7afbe1ca101a1b69370fbfb which
compensated for it by (almost) clearing the PATH entirely which, in
turn, broke one of our unit tests (and could break other things in the
future, as having an empty PATH is rather unexpected).
Also use the full path for head program now that its directory is not in
the PATH any more. Alternative could be to use PowerShell, but while
powershell -Command "'gcc','mingw32-make','ar'|%%{ iex \"$_ --version\"|select -first 1 }"
does work, it looks really ugly, so avoid it for now.
See https://github.com/wxWidgets/wxWidgets/pull/142
See #17274.
2017-11-25 09:59:16 -05:00
|
|
|
$env:PATH = $env:PATH -replace "C:\\Program Files\\Git\\usr\\bin",""
|
2021-01-18 19:20:02 -05:00
|
|
|
if (-not (Test-Path env:wxUSE_STL)) { $env:wxUSE_STL = '0' }
|
|
|
|
if (-not (Test-Path env:wxUSE_WEBVIEW_EDGE)) { $env:wxUSE_WEBVIEW_EDGE = '0' }
|
2021-01-31 18:51:28 -05:00
|
|
|
if (($env:TOOLSET -ne "msys2") -and ($env:TOOLSET -ne "cygwin")) {
|
2021-01-31 17:12:08 -05:00
|
|
|
$txt = gc include\wx\msw\setup.h
|
|
|
|
Write-Output $txt |
|
2015-11-04 09:30:27 -05:00
|
|
|
%{$_ -replace "define wxUSE_STL 0", "define wxUSE_STL $env:wxUSE_STL"} |
|
2021-01-18 19:20:02 -05:00
|
|
|
%{$_ -replace "define wxUSE_WEBVIEW_EDGE 0", "define wxUSE_WEBVIEW_EDGE $env:wxUSE_WEBVIEW_EDGE"} |
|
2015-11-04 09:30:27 -05:00
|
|
|
sc include\wx\msw\setup.h
|
|
|
|
}
|
|
|
|
|
2017-11-22 09:37:34 -05:00
|
|
|
build_script: c:\projects\wxwidgets\build\tools\appveyor.bat
|
2015-11-04 09:30:27 -05:00
|
|
|
|
2021-01-26 16:50:43 -05:00
|
|
|
before_test:
|
|
|
|
- ps: |
|
|
|
|
Write-Output "Getting and launching httpbin."
|
2021-01-27 05:11:20 -05:00
|
|
|
$env:PATH = "C:\Python35;C:\Python35\Scripts;" + $env:PATH
|
|
|
|
pip.exe --disable-pip-version-check install httpbin
|
|
|
|
Start-Job -Name wx_httpbin { python.exe -m httpbin.core 2>&1 > c:\projects\wxwidgets\httpbin.log }
|
2021-01-27 04:04:31 -05:00
|
|
|
Start-Sleep -Seconds 5
|
2021-01-27 05:30:18 -05:00
|
|
|
curl.exe -s http://127.0.0.1:5000/ip > $null
|
|
|
|
if ($lastExitCode -eq "0") {
|
2021-01-27 04:04:31 -05:00
|
|
|
$env:WX_TEST_WEBREQUEST_URL="http://127.0.0.1:5000"
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
Write-Error "Disabling wxWebRequest tests as launching httpbin failed."
|
|
|
|
$env:WX_TEST_WEBREQUEST_URL="0"
|
|
|
|
}
|
2021-01-26 16:50:43 -05:00
|
|
|
|
2017-11-22 09:37:34 -05:00
|
|
|
test_script: c:\projects\wxwidgets\build\tools\appveyor-test.bat
|
2021-01-26 16:50:43 -05:00
|
|
|
|
|
|
|
after_test:
|
|
|
|
- ps: |
|
|
|
|
Stop-Job -Name wx_httpbin
|