2015-11-04 09:33:43 -05:00
|
|
|
version: '{build}'
|
2015-11-04 09:30:27 -05:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- WX_3_0_BRANCH
|
|
|
|
|
2017-11-25 04:46:39 -05:00
|
|
|
skip_commits:
|
|
|
|
files:
|
|
|
|
- docs/
|
|
|
|
- interface/
|
|
|
|
- misc/
|
2020-04-22 11:18:11 -04:00
|
|
|
- include/wx/osx/
|
|
|
|
- src/osx/
|
2020-09-27 20:56:19 -04:00
|
|
|
- .github/workflows/
|
2020-04-21 17:05:38 -04:00
|
|
|
- .travis.yml
|
2020-04-22 09:25:31 -04:00
|
|
|
- build/tools/travis-ci.sh
|
|
|
|
- build/tools/before_install.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
|
|
|
|
wxUSE_STL: 0
|
|
|
|
- TOOLSET: nmake
|
|
|
|
VS: '14.0'
|
|
|
|
BUILD: debug
|
|
|
|
ARCH: amd64
|
|
|
|
wxUSE_STL: 1
|
|
|
|
- TOOLSET: mingw
|
2015-11-04 21:07:15 -05:00
|
|
|
wxUSE_STL: 0
|
2015-11-04 09:30:27 -05:00
|
|
|
- TOOLSET: msys2
|
|
|
|
MSYSTEM: MINGW32
|
|
|
|
- TOOLSET: cygwin
|
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",""
|
2015-11-04 09:30:27 -05:00
|
|
|
if (($env:compiler -ne "msys2") -and ($env:compiler -ne "cygwin")) {
|
|
|
|
gc include\wx\msw\setup0.h |
|
|
|
|
%{$_ -replace "define wxUSE_STL 0", "define wxUSE_STL $env:wxUSE_STL"} |
|
|
|
|
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
|
|
|
|
2017-11-22 09:37:34 -05:00
|
|
|
test_script: c:\projects\wxwidgets\build\tools\appveyor-test.bat
|