blob: 453fa127f2c54ef9547c50eae440b2a80d25da8b [file] [log] [blame]
version: 0.5.4-build-{build}
pull_requests:
do_not_increment_build_number: true
image:
- Visual Studio 2015
- Visual Studio 2017
- Visual Studio 2019
install:
- cmd: >-
set tests=1
if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86) & (set QTDIR=C:\Qt\5.9\msvc2015)
if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64) & (set QTDIR=C:\Qt\5.12\msvc2017_64)
if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" (call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64) & (set QTDIR=C:\Qt\5.15\msvc2019_64)
set path=%PATH%;%QTDIR%\bin
build_script:
- cmd: >-
nmake -f Makefile.nmake -nologo CFLAGS="-W3 -Os -MDd"
cd tests
if /i "%tests%"=="1" qmake CONFIG-=release CONFIG+=debug
if /i "%tests%"=="1" nmake -nologo -s
test_script:
- cmd: >-
if /i "%tests%"=="1" nmake -s -nologo TESTARGS=-silent check
if /i "%tests%"=="0" echo Tests skipped.
artifacts:
- path: lib\tinycbor.lib
deploy: off