From 20909884848abd658695062706328b43390e4a5c Mon Sep 17 00:00:00 2001 From: Bryan Petty Date: Wed, 4 Nov 2015 07:30:27 -0700 Subject: [PATCH] Added initial AppVeyor config. --- appveyor.yml | 42 ++++++++++++++++++++++++++++++++++++++++ build/tools/appveyor.bat | 39 +++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 appveyor.yml create mode 100644 build/tools/appveyor.bat diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000000..ba24832344 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,42 @@ +version: {build} + +branches: + only: + - master + - WX_3_0_BRANCH + +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 + - TOOLSET: msys2 + MSYSTEM: MINGW32 + - TOOLSET: cygwin + +clone_depth: 50 + +before_build: +- ps: | + $env:PATH = $env:PATH -replace "C:\\Program Files \(x86\)\\Git\\bin","" + 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 + } + +build_script: build\tools\appveyor.bat + +test: off diff --git a/build/tools/appveyor.bat b/build/tools/appveyor.bat new file mode 100644 index 0000000000..f75ab19b12 --- /dev/null +++ b/build/tools/appveyor.bat @@ -0,0 +1,39 @@ +goto %TOOLSET% + +:msbuild +cd build\msw +msbuild /m:2 /v:n /p:Platform=%ARCH% /p:Configuration="%CONFIGURATION%" wx_vc12.sln +goto :eof + +:nmake +cd build\msw +call "C:\Program Files (x86)\Microsoft Visual Studio %VS%\VC\vcvarsall.bat" %ARCH% +nmake -f makefile.vc BUILD=%BUILD% +goto :eof + +:mingw +cd build\msw +path C:\MinGW\bin;%path% +g++ --version +mingw32-make SHELL=cmd -f makefile.gcc setup_h BUILD=debug SHARED=0 USE_STC=0 USE_RIBBON=0 USE_PROPGRID=0 USE_AUI=0 +mingw32-make SHELL=cmd -j3 -f makefile.gcc BUILD=debug SHARED=0 USE_STC=0 USE_RIBBON=0 USE_PROPGRID=0 USE_AUI=0 +goto :eof + +:msys2 +path C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin;%path% +set CHERE_INVOKING=yes +:: Workaround for "configure: Bad file descriptor" +perl -i".bak" -pe "s/^test -n \".DJDIR\"/#$&/" configure +bash -lc "g++ --version" +bash -lc "CXXFLAGS=-Wno-deprecated-declarations ./configure --enable-debug --disable-xrc && make -j3" +goto :eof + +:cygwin +C:\cygwin\setup-x86.exe -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup -P libjpeg-devel -P libpng-devel -P libtiff-devel -P libexpat-devel +path c:\cygwin\bin;%path% +set CHERE_INVOKING=yes +:: Workaround for "configure: Bad file descriptor" +perl -i".bak" -pe "s/^test -n \".DJDIR\"/#$&/" configure +bash -lc "g++ --version" +bash -lc "LDFLAGS=-L/usr/lib/w32api ./configure --enable-debug --disable-shared --disable-html --disable-richtext --disable-stc && make -j3" +goto :eof