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: x64
|
|
|
|
configuration: Debug
|
|
|
|
vcvarsall_platform: x64
|
|
|
|
PlatformToolset: v120
|
2019-07-17 10:22:08 +02:00
|
|
|
cygwin_build: yes
|
2021-02-25 21:56:41 +01:00
|
|
|
MYQTDIR: C:\Qt\5.6\msvc2013_64
|
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
|
2019-07-07 18:35:44 +02:00
|
|
|
# FIXME: These are disabled for now. They were broken by ae8653612802b41b70424ec9a5eefe8a1178f6d1
|
|
|
|
# - VisualStudioVersion: 14.0
|
|
|
|
# platform: x64
|
|
|
|
# configuration: Debug
|
|
|
|
# vcvarsall_platform: x64
|
|
|
|
# PlatformToolset: v140
|
2021-02-25 21:56:41 +01:00
|
|
|
# MYQTDIR: C:\Qt\5.11\msvc2015_64
|
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
|
2015-01-27 04:49:31 +01:00
|
|
|
|
2019-07-09 07:46:53 +02:00
|
|
|
install:
|
2021-02-20 13:26:28 +01:00
|
|
|
- python -m pip install --user pip --upgrade
|
|
|
|
- python -m pip install --user pytest
|
2021-02-25 21:56:41 +01:00
|
|
|
- curl -fsSL https://github.com/Z3Prover/z3/releases/download/z3-4.8.9/z3-4.8.9-%platform%-win.zip -o z3-4.8.9-win.zip
|
2020-12-15 12:51:01 +01:00
|
|
|
- 7z x z3-4.8.9-win.zip -oexternals -r -y
|
2021-02-25 21:56:41 +01:00
|
|
|
- move externals\z3-4.8.9-%platform%-win externals\z3
|
2019-07-09 07:46:53 +02:00
|
|
|
|
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%'
|
2019-07-09 07:46:53 +02:00
|
|
|
# Visual studio project..
|
2016-07-26 14:12:18 +02:00
|
|
|
- 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"
|
2021-02-25 21:56:41 +01:00
|
|
|
# the following builds are Debug ones so do not perform them in Release jobs
|
|
|
|
- 'IF "%configuration%" == "Release" exit /b 0'
|
2019-07-09 07:46:53 +02:00
|
|
|
# cmake..
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake -DBUILD_TESTS=ON -G"NMake Makefiles" ..
|
|
|
|
- nmake
|
|
|
|
- copy bin\cppcheck.exe ..
|
|
|
|
- cd ..
|
|
|
|
# build gui..
|
2020-02-10 11:19:18 +01:00
|
|
|
- ECHO MYQTDIR=%MYQTDIR%
|
|
|
|
- 'IF defined MYQTDIR cd gui'
|
|
|
|
- 'IF defined MYQTDIR set QTDIR=%MYQTDIR%'
|
2020-10-18 08:07:27 +02:00
|
|
|
- 'IF defined MYQTDIR set PATH=%PATH%;%QTDIR%\bin'
|
2020-02-10 11:19:18 +01:00
|
|
|
- 'IF defined MYQTDIR %QTDIR%\bin\qmake'
|
|
|
|
- 'IF defined MYQTDIR nmake'
|
|
|
|
- 'IF defined MYQTDIR cd ..'
|
2015-01-27 04:49:31 +01:00
|
|
|
|
|
|
|
test_script:
|
2019-07-09 07:46:53 +02:00
|
|
|
- build\bin\testrunner.exe -q
|
2020-01-26 08:23:52 +01:00
|
|
|
- IF EXIST bin\debug\testrunner.exe bin\debug\testrunner.exe -q
|
|
|
|
- IF EXIST bin\testrunner.exe bin\testrunner.exe -q
|
2019-07-09 07:46:53 +02:00
|
|
|
- cd test\cli
|
|
|
|
- python -m pytest test-helloworld.py
|
|
|
|
- python -m pytest test-inline-suppress.py
|
2021-01-30 10:42:48 +01:00
|
|
|
- python -m pytest test-proj2.py
|
2019-07-09 07:46:53 +02:00
|
|
|
- python -m pytest test-suppress-syntaxError.py
|
2021-02-25 13:27:15 +01:00
|
|
|
- 'IF defined cygwin_build C:\cygwin64\bin\bash -e -l -c "cd /cygdrive/c/projects/cppcheck && make clean && make -j 2 test checkcfg"'
|