forked from danmar/cppcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
77 lines (71 loc) · 2.37 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '{build}'
clone_depth: 10
matrix:
fast_finish: true
environment:
matrix:
- VisualStudioVersion: 12.0
platform: Win32
configuration: Debug
vcvarsall_platform: x86
PlatformToolset: v120
- VisualStudioVersion: 12.0
platform: Win32
configuration: Release
vcvarsall_platform: x86
PlatformToolset: v120
MYQTDIR: C:\Qt\5.6\msvc2013
- VisualStudioVersion: 12.0
platform: x64
configuration: Debug
vcvarsall_platform: x64
PlatformToolset: v120
- VisualStudioVersion: 12.0
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
- VisualStudioVersion: 14.0
platform: Win32
configuration: Release
vcvarsall_platform: x86
PlatformToolset: v140
MYQTDIR: C:\Qt\5.11\msvc2015
- VisualStudioVersion: 14.0
platform: x64
configuration: Debug
vcvarsall_platform: x64
PlatformToolset: v140
# 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
# MYQTDIR: C:\Qt\5.11\msvc2015_64
build_script:
- 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"
- 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 ..'
test_script:
- IF "%CONFIGURATION%" == "Debug" bin\debug\testrunner.exe
- IF "%CONFIGURATION%" == "Release" bin\testrunner.exe
artifacts:
- path: bin
name: CLI binaries
type: zip
- path: Build\gui
name: GUI binaries
type: zip