Permalink
Fetching contributors…
Cannot retrieve contributors at this time
104 lines (95 sloc) 3.67 KB
version: '{build}'
branches:
only:
- master
- next
shallow_clone: true
clone_depth: 1
init:
- git config --global core.autocrlf input
clone_folder: c:\dev\grantlee
environment:
matrix:
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.5\msvc2013
PLATFORM: X86
VSVER: 12
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.5\msvc2013_64
PLATFORM: X64
VSVER: 12
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.6\msvc2015
PLATFORM: X86
VSVER: 14
- CMAKE_GENERATOR: "Ninja"
QT5: C:\Qt\5.6\msvc2015_64
PLATFORM: X64
VSVER: 14
- CMAKE_GENERATOR: "Visual Studio 12"
QT5: C:\Qt\5.5\msvc2013
PLATFORM: X86
VSVER: 12
- CMAKE_GENERATOR: "Visual Studio 12 Win64"
QT5: C:\Qt\5.5\msvc2013_64
PLATFORM: X64
VSVER: 12
- CMAKE_GENERATOR: "Visual Studio 14"
QT5: C:\Qt\5.6\msvc2015
PLATFORM: X86
VSVER: 14
- CMAKE_GENERATOR: "Visual Studio 14 Win64"
QT5: C:\Qt\5.6\msvc2015_64
PLATFORM: X64
VSVER: 14
- CMAKE_GENERATOR: "NMake Makefiles JOM"
QT5: C:\Qt\5.5\msvc2013
PLATFORM: X86
VSVER: 12
- CMAKE_GENERATOR: "NMake Makefiles JOM"
QT5: C:\Qt\5.5\msvc2013_64
PLATFORM: X64
VSVER: 12
- CMAKE_GENERATOR: "NMake Makefiles JOM"
QT5: C:\Qt\5.6\msvc2015
PLATFORM: X86
VSVER: 14
- CMAKE_GENERATOR: "NMake Makefiles JOM"
QT5: C:\Qt\5.6\msvc2015_64
PLATFORM: X64
VSVER: 14
- CMAKE_GENERATOR: "MinGW Makefiles"
QT5: C:\Qt\5.5\mingw492_32
MINGW_PATH: C:\Qt\Tools\mingw492_32
- CMAKE_GENERATOR: "MinGW Makefiles"
QT5: C:\Qt\5.6\mingw49_32
MINGW_PATH: C:\Qt\Tools\mingw492_32
before_build:
- set PATH=C:\cygwin\bin;%QT5%\bin;c:\dev\grantlee\build\templates\lib;c:\dev\grantlee\build\textdocument\lib;%PATH%
- sed -i "s|std::equal(b, e, lb)|std::equal(b, e,\n#if defined(Q_CC_MSVC)\nstdext::make_unchecked_array_iterator(lb)\n#else\nlb\n#endif\n)|" %QT5%\include\QtCore\qlist.h
- set PATH=%PATH:C:\cygwin\bin;=%
- if "%CMAKE_GENERATOR%" == "MinGW Makefiles" set PATH=%MINGW_PATH%\bin;%PATH:C:\Program Files\Git\usr\bin;=%
- if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
- if "%CMAKE_GENERATOR%" == "Ninja" cinst ninja
- if "%CMAKE_GENERATOR%" == "Ninja" set PATH=C:\tools\ninja;%PATH%
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
build:
build_script:
- ps: $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
- if NOT "%CMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using Visual Studio %VSVER%.0 at %VSCOMNTOOLS%"
- if "%CMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using MinGW"
- if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X86" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat"
- if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if "%CMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "X64" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
- if "%CMAKE_GENERATOR%" == "Ninja" if "%PLATFORM%" == "X86" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat"
- if "%CMAKE_GENERATOR%" == "Ninja" if "%PLATFORM%" == "X64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if "%CMAKE_GENERATOR%" == "Ninja" if "%PLATFORM%" == "X64" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
- cd c:\dev\grantlee
- md build
- cd build
- cmake .. -G "%CMAKE_GENERATOR%" "-DCMAKE_PREFIX_PATH=%QT5%"
- cmake --build . --config Debug
- cmake --build . --config Release
test_script:
- cmd: ctest --output-on-failure -C "Debug"
- cmd: ctest --output-on-failure -C "Release"