Build GUI version on appveyor (#1566)

* appveyor changes: Build GUI, remove obsolete commands, add MSVC 2015 release configurations, activate fast_finish
This commit is contained in:
amai2012 2019-01-06 22:59:55 +01:00 committed by GitHub
parent 0a1b3a9d6f
commit 286cb2fc2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 51 additions and 26 deletions

View File

@ -1,45 +1,67 @@
version: 1.73.{build} version: '{build}'
clone_depth: 10 clone_depth: 10
matrix:
fast_finish: true
environment: environment:
matrix: matrix:
- VisualStudioVersion: 12.0 - VisualStudioVersion: 12.0
platform: "Win32" platform: Win32
configuration: "Debug" configuration: Debug
vcvarsall_platform: "x86" vcvarsall_platform: x86
PlatformToolset: "v120" PlatformToolset: v120
- VisualStudioVersion: 12.0 - VisualStudioVersion: 12.0
platform: "Win32" platform: Win32
configuration: "Release" configuration: Release
vcvarsall_platform: "x86" vcvarsall_platform: x86
PlatformToolset: "v120" PlatformToolset: v120
MYQTDIR: C:\Qt\5.6\msvc2013
- VisualStudioVersion: 12.0 - VisualStudioVersion: 12.0
platform: "x64" platform: x64
configuration: "Debug" configuration: Debug
vcvarsall_platform: "x64" vcvarsall_platform: x64
PlatformToolset: "v120" PlatformToolset: v120
- VisualStudioVersion: 12.0 - VisualStudioVersion: 12.0
platform: "x64" platform: x64
configuration: "Release" configuration: Release
vcvarsall_platform: "x64" vcvarsall_platform: x64
PlatformToolset: "v120" PlatformToolset: v120
MYQTDIR: C:\Qt\5.6\msvc2013_64
- VisualStudioVersion: 14.0 - VisualStudioVersion: 14.0
platform: "Win32" platform: Win32
configuration: "Debug" configuration: Debug
vcvarsall_platform: "x86" vcvarsall_platform: x86
PlatformToolset: "v140" PlatformToolset: v140
- VisualStudioVersion: 14.0 - VisualStudioVersion: 14.0
platform: "x64" platform: Win32
configuration: "Debug" configuration: Release
vcvarsall_platform: "x64" vcvarsall_platform: x86
PlatformToolset: "v140" PlatformToolset: v140
MYQTDIR: C:\Qt\5.11\msvc2015
- VisualStudioVersion: 14.0
platform: x64
configuration: Debug
vcvarsall_platform: x64
PlatformToolset: v140
- VisualStudioVersion: 14.0
platform: x64
configuration: Release
vcvarsall_platform: x64
PlatformToolset: v140
MYQTDIR: C:\Qt\5.11\msvc2015_64
build_script: build_script:
- ECHO Building %configuration% %platform% with MSVC %VisualStudioVersion% using %PlatformToolset% PlatformToolset - ECHO Building %configuration% %platform% with MSVC %VisualStudioVersion% using %PlatformToolset% PlatformToolset
- 'IF "%VisualStudioVersion%" == "10.0" IF "%platform%" == "x64" CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /%vcvarsall_platform% /%configuration%'
- 'CALL "C:\Program Files (x86)\Microsoft Visual Studio %VisualStudioVersion%\VC\vcvarsall.bat" %vcvarsall_platform%' - '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" - 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: test_script:
- IF "%CONFIGURATION%" == "Debug" bin\debug\testrunner.exe - IF "%CONFIGURATION%" == "Debug" bin\debug\testrunner.exe
@ -49,3 +71,6 @@ artifacts:
- path: bin - path: bin
name: CLI binaries name: CLI binaries
type: zip type: zip
- path: Build\gui
name: GUI binaries
type: zip