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}'
os : Visual Studio 2015
# branches to build
branches :
# whitelist
only :
- develop
- release
# 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 :
2017-02-22 11:16:51 +01:00
- QT5 : Qt\5.8\mingw53_32
2016-07-28 12:20:03 +02:00
QMAKE_GENERATOR : "MinGW Makefiles"
2016-07-28 13:22:35 +02:00
MINGW_PATH : C:\Qt\Tools\mingw530_32\bin
2016-08-05 12:11:03 +02:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : true
2017-02-22 11:16:51 +01:00
- QT5 : Qt\5.8\msvc2015_64
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 14
PLATFORM : x64
DEPLOY : false
- QT5 : Qt\5.8\msvc2015
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 14
PLATFORM : x86
DEPLOY : false
- QT5 : Qt\5.8\msvc2013_64
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
PLATFORM : x64
DEPLOY : false
- QT5 : Qt\5.8\msvc2013
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
PLATFORM : x86
DEPLOY : false
- QT5 : Qt\5.7\mingw53_32
QMAKE_GENERATOR : "MinGW Makefiles"
MINGW_PATH : C:\Qt\Tools\mingw530_32\bin
PLATFORM : x86
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.7\msvc2015_64
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 14
2016-08-05 12:11:03 +02:00
PLATFORM : x64
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.7\msvc2015
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 14
2016-08-05 12:11:03 +02:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.7\msvc2013_64
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
2016-08-05 12:11:03 +02:00
PLATFORM : x64
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.7\msvc2013
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
2016-08-05 12:11:03 +02:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.6\mingw49_32
QMAKE_GENERATOR : "MinGW Makefiles"
2016-07-28 13:22:35 +02:00
MINGW_PATH : C:\Qt\Tools\mingw492_32\bin
2016-08-05 12:11:03 +02:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.6\msvc2015_64
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 14
2016-08-05 12:11:03 +02:00
PLATFORM : x64
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.6\msvc2015
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 14
2016-08-05 12:11:03 +02:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.6\msvc2013_64
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
2016-08-05 12:11:03 +02:00
PLATFORM : x64
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.6\msvc2013
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
2016-08-05 12:11:03 +02:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.5\mingw492_32
QMAKE_GENERATOR : "MinGW Makefiles"
2016-07-28 13:22:35 +02:00
MINGW_PATH : C:\Qt\Tools\mingw492_32\bin
2016-08-05 12:11:03 +02:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.5\msvc2013_64
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
2016-08-05 12:11:03 +02:00
PLATFORM : x64
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.5\msvc2013
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
2016-08-05 12:11:03 +02:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.4\mingw491_32
QMAKE_GENERATOR : "MinGW Makefiles"
2016-07-28 12:45:07 +02:00
MINGW_PATH : C:\Qt\Tools\mingw491_32\bin
2016-08-05 12:11:03 +02:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.4\msvc2013_64_opengl
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
2016-08-05 12:11:03 +02:00
PLATFORM : x64
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.4\msvc2013_opengl
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
2016-08-05 12:11:03 +02:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.3\mingw482_32
QMAKE_GENERATOR : "MinGW Makefiles"
2016-07-28 12:45:07 +02:00
MINGW_PATH : C:\Qt\Tools\mingw482_32\bin
2016-08-05 12:11:03 +02:00
PLATFORM : x86
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.3\msvc2013_64_opengl
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
2016-08-05 12:11:03 +02:00
PLATFORM : x64
2016-12-19 11:05:39 +01:00
DEPLOY : false
2016-07-28 12:20:03 +02:00
- QT5 : Qt\5.3\msvc2013_opengl
QMAKE_GENERATOR : "NMake Makefiles JOM"
VSVER : 12
2016-08-05 12:11:03 +02:00
PLATFORM : x86
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 :
2016-07-28 15:30:25 +02:00
# Path before
- path
2016-08-05 12:11:03 +02:00
- set QTDIR=C:\%QT5%
2016-08-16 21:55:27 +02:00
- set PATH=%QTDIR%\bin;%QTDIR%\include;C:\Tools\PsTools;C:\Windows\system32;C:\Windows;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Mercurial\
2016-07-28 19:13:47 +02:00
- ps : $env:VSCOMNTOOLS=(Get-Content ("env:VS" + "$env:VSVER" + "0COMNTOOLS"))
- if NOT "%QMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using Visual Studio %VSVER%.0 at %VSCOMNTOOLS%"
- if "%QMAKE_GENERATOR%" == "MinGW Makefiles" echo "Using MinGW"
2016-08-05 12:11:03 +02:00
# Set VC variables for the platform
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if %PLATFORM% == x64 call "%VSCOMNTOOLS%\..\..\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if %PLATFORM% == x86 call "%VSCOMNTOOLS%\..\..\VC\bin\vcvars32.bat"
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "x86" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat"
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "x64" "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
- if "%QMAKE_GENERATOR%" == "NMake Makefiles JOM" if "%PLATFORM%" == "x64" call "%VSCOMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
- 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
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-01-30 13:39:57 +01:00
- if "%DEPLOY%" == "true" (qmake ..\Valentina.pro -r CONFIG+=no_ccache CONFIG+=checkWarnings) else (qmake ..\Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache CONFIG+=checkWarnings)
2016-08-05 12:11:03 +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
- susan.spencer@gmail.com
- zhuravska19@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
name : valentina-win-$(APPVEYOR_REPO_COMMIT)
deploy :
- provider : BinTray
username : dismine
api_key :
2017-03-22 11:41:40 +01:00
secure : J653yvPpcHqZ9hrPgXcgtRUz8a3tB/gqYseyQrE4LggyApcAm5fCtLF8wtw2my+m
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
version : 0.5
on :
DEPLOY : true
artifact : valentina-win-$(APPVEYOR_REPO_COMMIT)