2016-07-28 12:20:03 +02:00
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version : '{build}-{branch}'
# branches to build
branches :
# whitelist
only :
- develop
- release
2017-05-09 15:34:05 +02:00
- default
2016-07-28 12:20:03 +02:00
# Do not build on tags (GitHub and BitBucket)
skip_tags : true
#---------------------------------#
# environment configuration #
#---------------------------------#
2016-08-05 12:11:03 +02:00
# clone directory
clone_folder : c:\projects\valentina
2016-07-28 12:20:03 +02:00
# set clone depth
clone_depth : 1 # clone entire repository history if not defined
# fetch repository as zip archive
shallow_clone : false # default is "false"
environment :
matrix :
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
2020-07-04 14:14:46 +02:00
QT5 : Qt\5.15\mingw81_32
QT_VERSION : Qt5.15
2017-07-01 21:13:21 +02:00
QMAKE_GENERATOR : "MinGW Makefiles"
2020-07-04 14:14:46 +02:00
MINGW_PATH : C:\Qt\Tools\mingw810_32\bin
2017-07-01 21:13:21 +02:00
PLATFORM : x86
2019-09-20 15:49:16 +02:00
DEPLOY : true
2020-01-13 09:41:40 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2015
2020-01-12 13:05:07 +01:00
QT5 : Qt\5.6\mingw49_32
2017-11-13 13:55:18 +01:00
QT_VERSION : Qt5.6
QMAKE_GENERATOR : "MinGW Makefiles"
MINGW_PATH : C:\Qt\Tools\mingw492_32\bin
PLATFORM : x86
DEPLOY : true
2020-07-04 14:14:46 +02:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
QT5 : Qt\5.15\mingw81_64
QT_VERSION : Qt5.15
QMAKE_GENERATOR : "MinGW Makefiles"
MINGW_PATH : C:\Qt\Tools\mingw810_64\bin
PLATFORM : x64
DEPLOY : false
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
QT5 : Qt\5.15\msvc2019_64
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 16
PLATFORM : x64
DEPLOY : false
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
QT5 : Qt\5.14\mingw73_32
QT_VERSION : Qt5.14
QMAKE_GENERATOR : "MinGW Makefiles"
MINGW_PATH : C:\Qt\Tools\mingw730_32\bin
PLATFORM : x86
DEPLOY : false
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
QT5 : Qt\5.14\mingw73_64
QT_VERSION : Qt5.14
QMAKE_GENERATOR : "MinGW Makefiles"
MINGW_PATH : C:\Qt\Tools\mingw730_64\bin
PLATFORM : x64
DEPLOY : false
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
QT5 : Qt\5.14\msvc2017_64
2019-09-20 15:49:16 +02:00
QMAKE_GENERATOR : "NMake Makefiles JOM"
2020-01-12 13:05:07 +01:00
VSVER : 15
PLATFORM : x64
DEPLOY : false
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
QT5 : Qt\5.13\mingw73_64
QT_VERSION : Qt5.13
QMAKE_GENERATOR : "MinGW Makefiles"
MINGW_PATH : C:\Qt\Tools\mingw730_64\bin
2019-09-20 15:49:16 +02:00
PLATFORM : x64
DEPLOY : false
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
QT5 : Qt\5.13\msvc2017_64
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 15
PLATFORM : x64
DEPLOY : false
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
QT5 : Qt\5.12\mingw73_64
2019-09-20 15:49:16 +02:00
QT_VERSION : Qt5.12
QMAKE_GENERATOR : "MinGW Makefiles"
2020-01-12 13:05:07 +01:00
MINGW_PATH : C:\Qt\Tools\mingw730_64\bin
PLATFORM : x64
2019-09-20 15:49:16 +02:00
DEPLOY : false
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2019
QT5 : Qt\5.12\msvc2017_64
2019-09-20 15:49:16 +02:00
QMAKE_GENERATOR : "NMake Makefiles JOM"
2020-01-12 13:05:07 +01:00
VSVER : 15
2019-09-20 15:49:16 +02:00
PLATFORM : x64
DEPLOY : false
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
QT5 : Qt\5.11\mingw53_32
2019-04-18 10:55:08 +02:00
QT_VERSION : Qt5.11
QMAKE_GENERATOR : "MinGW Makefiles"
MINGW_PATH : C:\Qt\Tools\mingw530_32\bin
PLATFORM : x86
DEPLOY : false
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2015
QT5 : Qt\5.11\msvc2015_64
2018-06-04 13:16:21 +02:00
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 14
PLATFORM : x64
DEPLOY : false
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
QT5 : Qt\5.10\mingw53_32
2018-06-04 13:16:21 +02:00
QT_VERSION : Qt5.10
QMAKE_GENERATOR : "MinGW Makefiles"
MINGW_PATH : C:\Qt\Tools\mingw530_32\bin
PLATFORM : x86
DEPLOY : false
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
QT5 : Qt\5.10\msvc2017_64
2018-02-25 10:11:25 +01:00
QMAKE_GENERATOR : "NMake Makefiles JOM"
2020-01-12 13:05:07 +01:00
VSVER : 15
2018-02-25 10:11:25 +01:00
PLATFORM : x64
DEPLOY : false
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
QT5 : Qt\5.9\mingw53_32
2018-02-25 10:11:25 +01:00
QT_VERSION : Qt5.9
QMAKE_GENERATOR : "MinGW Makefiles"
MINGW_PATH : C:\Qt\Tools\mingw530_32\bin
PLATFORM : x86
DEPLOY : false
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2017
QT5 : Qt\5.9\msvc2017_64
2017-07-01 21:13:21 +02:00
QMAKE_GENERATOR : "NMake Makefiles JOM"
2020-01-12 13:05:07 +01:00
VSVER : 15
2017-07-01 21:13:21 +02:00
PLATFORM : x64
DEPLOY : false
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2015
2020-01-14 09:34:40 +01:00
QT5 : Qt\5.7\mingw53_32
2020-01-12 13:05:07 +01:00
QT_VERSION : Qt5.7
QMAKE_GENERATOR : "MinGW Makefiles"
MINGW_PATH : C:\Qt\Tools\mingw530_32\bin
2017-07-01 21:13:21 +02:00
PLATFORM : x86
DEPLOY : false
2020-01-12 13:05:07 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2015
2020-01-14 09:34:40 +01:00
QT5 : Qt\5.7\msvc2015
2016-07-28 12:20:03 +02:00
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 14
2020-01-12 13:05:07 +01:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : false
2020-01-13 09:41:40 +01:00
- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2015
2020-01-12 13:05:07 +01:00
QT5 : Qt\5.6\msvc2015_64
2017-06-01 08:03:29 +02:00
QT_VERSION : Qt5.6
2016-07-28 12:20:03 +02:00
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 14
2020-01-12 13:05:07 +01:00
PLATFORM : x64
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
# scripts that are called at very beginning, before repo cloning
init :
2019-04-18 11:39:22 +02:00
# Uncomment if need access through RDP
2019-04-18 11:45:02 +02:00
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
2016-07-28 15:30:25 +02:00
# Path before
- path
2016-08-05 12:11:03 +02:00
- set QTDIR=C:\%QT5%
2020-01-31 15:47:32 +01:00
- set PATH=%QTDIR%\bin;%QTDIR%\include;C:\Tools\PsTools;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\Git LFS;C:\Tools\GitVersion;C:\Windows\system32;C:\Windows;C:\Windows\System32\WindowsPowerShell\v1.0\
2020-01-13 09:26:44 +01:00
- if NOT "%QMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using Visual Studio %VSVER%.0"
2016-07-28 19:13:47 +02:00
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using MinGW"
2016-08-05 12:11:03 +02:00
# Set VC variables for the platform
2020-01-14 15:16:51 +01:00
- IF "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" IF "%QMAKE_GENERATOR%"=="NMake Makefiles JOM" IF "%PLATFORM%"=="x86" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" IF "%QMAKE_GENERATOR%"=="NMake Makefiles JOM" IF "%PLATFORM%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- IF "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" IF "%QMAKE_GENERATOR%"=="NMake Makefiles JOM" IF "%PLATFORM%"=="x86" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" if "%QMAKE_GENERATOR%"=="NMake Makefiles JOM" if "%PLATFORM%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" if "%QMAKE_GENERATOR%"=="NMake Makefiles JOM" if "%PLATFORM%"=="x86" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" if "%QMAKE_GENERATOR%"=="NMake Makefiles JOM" if "%PLATFORM%"=="x64" call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" if "%QMAKE_GENERATOR%"=="NMake Makefiles JOM" if "%PLATFORM%"=="x64" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
2016-08-05 12:11:03 +02:00
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" set PATH=%MINGW_PATH%;%PATH%
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
- set PATH=C:\projects\valentina\build\src\libs\vpropertyexplorer\bin;C:\projects\valentina\build\src\libs\qmuparser\bin;%PATH%
2016-07-28 15:30:25 +02:00
# Path after
2016-07-28 13:50:38 +02:00
- path
2020-01-31 19:55:04 +01:00
# Trick qmake to not work through MSYS
- del /F "C:\Program Files\Git\usr\bin\sh.exe"
- del /F "C:\Program Files\Git\bin\sh.exe"
2016-07-28 12:20:03 +02:00
- qmake -v
#---------------------------------#
# build configuration #
#---------------------------------#
before_build :
- cd c:\projects\valentina
- md build
# to run your custom scripts instead of automatic MSBuild
build_script :
- cd build
2017-09-04 18:15:35 +02:00
- if "%DEPLOY%" == "true" (qmake ..\Valentina.pro -r CONFIG+=no_ccache CONFIG+=checkWarnings CONFIG+=noDebugSymbols CONFIG+=noWindowsInstaller) else (qmake ..\Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings)
2017-07-01 21:13:21 +02:00
- if not "%QMAKE_GENERATOR%" == "MinGW Makefiles" (nmake -s) else (mingw32-make -j%NUMBER_OF_PROCESSORS%)
2016-07-28 12:20:03 +02:00
# to run your custom scripts instead of automatic tests
test_script :
2016-08-05 12:11:03 +02:00
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" (mingw32-make -s check TESTARGS="-silent")
2016-07-28 12:20:03 +02:00
# to disable automatic tests
2016-07-28 16:03:00 +02:00
#test: off
2016-07-28 12:20:03 +02:00
matrix :
2017-01-10 17:10:14 +01:00
fast_finish : false
2016-07-28 12:20:03 +02:00
#---------------------------------#
# notifications #
#---------------------------------#
notifications :
# Email
- provider : Email
to :
- dismine@gmail.com
2016-08-16 21:55:27 +02:00
on_build_success : false
on_build_failure : true
2016-07-28 12:20:03 +02:00
on_build_status_changed : true
2016-12-19 11:05:39 +01:00
#---------------------------------#
# deployment #
#---------------------------------#
# prepare to deploy
after_test :
- if "%DEPLOY%" == "true" (mingw32-make install)
artifacts :
- path : build/package/valentina
2017-09-20 12:10:45 +02:00
name : valentina-win-$(QT_VERSION)-$(APPVEYOR_REPO_BRANCH)-$(APPVEYOR_REPO_COMMIT)
2016-12-19 11:05:39 +01:00
deploy :
- provider : BinTray
username : dismine
api_key :
2018-12-11 21:21:28 +01:00
secure : dlVBgPG66AfYTbgi9EQFaK4lZeF77H6/aiuKlmCWP02/i85HLtCMnlOkyWJR5XCu
2016-12-19 11:05:39 +01:00
subject : dismine
2016-12-19 11:28:07 +01:00
repo : Valentina
2016-12-19 11:05:39 +01:00
package : valentina-win_auto-upload
publish : true
override : true
2021-03-31 16:22:18 +02:00
version : 0.7 .46
2016-12-19 11:05:39 +01:00
on :
DEPLOY : true
2017-09-20 12:10:45 +02:00
artifact : valentina-win-$(QT_VERSION)-$(APPVEYOR_REPO_BRANCH)-$(APPVEYOR_REPO_COMMIT)