2019-01-06 22:59:55 +01:00
|
|
|
version: '{build}'
|
2015-01-27 04:49:31 +01:00
|
|
|
|
2016-07-26 14:12:18 +02:00
|
|
|
clone_depth: 10
|
2015-01-27 04:49:31 +01:00
|
|
|
|
2019-01-06 22:59:55 +01:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
2016-07-26 14:12:18 +02:00
|
|
|
environment:
|
|
|
|
matrix:
|
2018-04-08 23:03:57 +02:00
|
|
|
- VisualStudioVersion: 12.0
|
2019-01-06 22:59:55 +01:00
|
|
|
platform: Win32
|
|
|
|
configuration: Debug
|
|
|
|
vcvarsall_platform: x86
|
|
|
|
PlatformToolset: v120
|
2018-04-08 23:03:57 +02:00
|
|
|
- VisualStudioVersion: 12.0
|
2019-01-06 22:59:55 +01:00
|
|
|
platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
vcvarsall_platform: x86
|
|
|
|
PlatformToolset: v120
|
|
|
|
MYQTDIR: C:\Qt\5.6\msvc2013
|
2018-04-08 23:03:57 +02:00
|
|
|
- VisualStudioVersion: 12.0
|
2019-01-06 22:59:55 +01:00
|
|
|
platform: x64
|
|
|
|
configuration: Debug
|
|
|
|
vcvarsall_platform: x64
|
|
|
|
PlatformToolset: v120
|
2018-04-08 23:03:57 +02:00
|
|
|
- VisualStudioVersion: 12.0
|
2019-01-06 22:59:55 +01:00
|
|
|
platform: x64
|
|
|
|
configuration: Release
|
|
|
|
vcvarsall_platform: x64
|
|
|
|
PlatformToolset: v120
|
|
|
|
MYQTDIR: C:\Qt\5.6\msvc2013_64
|
|
|
|
- VisualStudioVersion: 14.0
|
|
|
|
platform: Win32
|
|
|
|
configuration: Debug
|
|
|
|
vcvarsall_platform: x86
|
|
|
|
PlatformToolset: v140
|
2018-04-09 06:14:16 +02:00
|
|
|
- VisualStudioVersion: 14.0
|
2019-01-06 22:59:55 +01:00
|
|
|
platform: Win32
|
|
|
|
configuration: Release
|
|
|
|
vcvarsall_platform: x86
|
|
|
|
PlatformToolset: v140
|
|
|
|
MYQTDIR: C:\Qt\5.11\msvc2015
|
2018-04-09 06:14:16 +02:00
|
|
|
- VisualStudioVersion: 14.0
|
2019-01-06 22:59:55 +01:00
|
|
|
platform: x64
|
|
|
|
configuration: Debug
|
|
|
|
vcvarsall_platform: x64
|
|
|
|
PlatformToolset: v140
|
2019-01-10 08:30:35 +01:00
|
|
|
# That platform causes frequent errors on appveyor due to an unknown infrastructure failure
|
|
|
|
# - VisualStudioVersion: 14.0
|
|
|
|
# platform: x64
|
|
|
|
# configuration: Release
|
|
|
|
# vcvarsall_platform: x64
|
|
|
|
# PlatformToolset: v140
|
2019-01-09 09:06:57 +01:00
|
|
|
# MYQTDIR: C:\Qt\5.11\msvc2015_64
|
2015-01-27 04:49:31 +01:00
|
|
|
|
|
|
|
build_script:
|
2016-07-26 14:12:18 +02:00
|
|
|
- ECHO Building %configuration% %platform% with MSVC %VisualStudioVersion% using %PlatformToolset% PlatformToolset
|
|
|
|
- 'CALL "C:\Program Files (x86)\Microsoft Visual Studio %VisualStudioVersion%\VC\vcvarsall.bat" %vcvarsall_platform%'
|
|
|
|
- msbuild "cppcheck.sln" /consoleloggerparameters:Verbosity=minimal /target:Build /property:Configuration="%configuration%";Platform=%platform% /p:PlatformToolset=%PlatformToolset% /maxcpucount /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
2019-01-06 22:59:55 +01:00
|
|
|
- ECHO MYQTDIR=%MYQTDIR%
|
|
|
|
- 'IF defined MYQTDIR cd gui'
|
|
|
|
- 'IF defined MYQTDIR set QTDIR=%MYQTDIR%'
|
|
|
|
- 'IF defined MYQTDIR %QTDIR%\bin\qmake'
|
|
|
|
- 'IF defined MYQTDIR nmake'
|
|
|
|
- 'IF defined MYQTDIR cd ..'
|
2015-01-27 04:49:31 +01:00
|
|
|
|
|
|
|
test_script:
|
2016-07-26 14:12:18 +02:00
|
|
|
- IF "%CONFIGURATION%" == "Debug" bin\debug\testrunner.exe
|
|
|
|
- IF "%CONFIGURATION%" == "Release" bin\testrunner.exe
|
2018-02-26 21:45:21 +01:00
|
|
|
|
|
|
|
artifacts:
|
2018-02-26 21:56:23 +01:00
|
|
|
- path: bin
|
2018-02-26 21:59:53 +01:00
|
|
|
name: CLI binaries
|
|
|
|
type: zip
|
2019-01-06 22:59:55 +01:00
|
|
|
- path: Build\gui
|
|
|
|
name: GUI binaries
|
|
|
|
type: zip
|