valentina/appveyor.yml

610 lines
21 KiB
YAML
Raw Normal View History

# 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
2023-02-22 15:45:53 +01:00
- master
# Do not build on tags (GitHub and BitBucket)
skip_tags: true
2023-02-22 15:45:53 +01:00
platform:
- x86
- x64
#---------------------------------#
2023-02-22 15:45:53 +01:00
# environment setup #
#---------------------------------#
# 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:
2021-05-01 18:54:48 +02:00
ACCESS_TOKEN:
2023-02-22 15:45:53 +01:00
secure: RUhnEHqaR8KhalOMWwZZOoO342Ja50QV4KpEWdm9g3pG+jG7i6aJqUmeKF1l5VN6dzksk1u+yN6pOLnU8oGcaVQ6v+1dpKK1oZvF0tyHhNE=
matrix:
2023-02-22 15:45:53 +01:00
- job_name: Windows_Qt_6_4_(GCC_x64)
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
COMPILER: mingw
2023-02-26 13:54:29 +01:00
COMPILER_CPPSTD: gnu17
COMPILER_LIBCXX: libstdc++11
2023-02-25 11:09:58 +01:00
QT: Qt\6.4\mingw_64
2023-02-22 15:45:53 +01:00
QT_VERSION: Qt6_4
BUILD_SYSTEM: "qbs"
2023-02-25 19:35:40 +01:00
ENABLE_PCH: false
GCC_VERSION: 12.2
MINGW_PATH: C:\msys64\mingw64\bin
2023-02-22 15:45:53 +01:00
ARCH: x64
PYTHON: "C:\\Python311-x64"
PLATFORM: "Windows10+"
MSYS2_PACKAGES: true
2023-02-22 15:45:53 +01:00
DEPLOY: true
- job_name: Windows_Qt_5_15_(qbs_GCC_x86)
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
COMPILER: mingw
2023-02-26 13:54:29 +01:00
COMPILER_CPPSTD: gnu17
COMPILER_LIBCXX: libstdc++11
2023-02-22 15:45:53 +01:00
QT: Qt\5.15\mingw81_32
QT_VERSION: Qt5_15
BUILD_SYSTEM: "qbs"
2023-02-25 19:35:40 +01:00
ENABLE_PCH: true
2023-02-24 19:54:09 +01:00
GCC_VERSION: 8.1
2023-02-22 15:45:53 +01:00
MINGW_PATH: C:\Qt\Tools\mingw810_32\bin
ARCH: x86
PYTHON: "C:\\Python311"
PLATFORM: "Windows7+"
MSYS2_PACKAGES: false
2023-02-22 15:45:53 +01:00
DEPLOY: true
- job_name: Windows_Qt_5_6_(GCC_x86)
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
COMPILER: mingw
QT: Qt\5.6\mingw49_32
QT_VERSION: Qt5_6
BUILD_SYSTEM: "make"
MINGW_PATH: C:\Qt\Tools\mingw492_32\bin
ARCH: x86
2023-02-24 19:54:09 +01:00
PYTHON: "C:\\Python38"
2023-02-22 15:45:53 +01:00
PLATFORM: "WindowsXP+"
DEPLOY: true
- job_name: MacOS_12_Qt_6_4 (multibundle)
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey
COMPILER: clang
QT: Qt/6.4/macos
2023-02-22 15:45:53 +01:00
QT_VERSION: Qt6_4
BUILD_SYSTEM: "qbs"
ARCH: x64
2023-02-23 10:28:07 +01:00
XCODE_VERSION: 13.4.1
2023-02-26 13:58:23 +01:00
PLATFORM: "macOS_11+"
2023-02-22 15:45:53 +01:00
MACOS_DEPLOYMENT_TARGET: 11.0
MULTI_BUNDLE: true
ENABLE_CONAN: true
DEPLOY: true
- job_name: MacOS_12_Qt_6_4 (singlebundle)
APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey
COMPILER: clang
QT: Qt/6.4/macos
2023-02-22 15:45:53 +01:00
QT_VERSION: Qt6_4
BUILD_SYSTEM: "qbs"
ARCH: x64
2023-02-23 10:28:07 +01:00
XCODE_VERSION: 13.4.1
2023-02-26 13:58:23 +01:00
PLATFORM: "macOS_11+"
2023-02-22 15:45:53 +01:00
MACOS_DEPLOYMENT_TARGET: 11.0
MULTI_BUNDLE: false
ENABLE_CONAN: true
DEPLOY: true
- job_name: MacOS_10_15_Qt_5_15 (qbs, multibundle)
APPVEYOR_BUILD_WORKER_IMAGE: macos-catalina
COMPILER: clang
QT: Qt/5.15/clang_64
2023-02-22 15:45:53 +01:00
QT_VERSION: Qt5_15
BUILD_SYSTEM: "qbs"
ARCH: x64
2023-02-24 19:54:09 +01:00
XCODE_VERSION: 12.3
2023-02-22 15:45:53 +01:00
PLATFORM: "macOS10.13+"
MACOS_DEPLOYMENT_TARGET: 10.13
MULTI_BUNDLE: true
ENABLE_CONAN: false
DEPLOY: true
- job_name: MacOS_10_15_Qt_5_15 (qbs, singlebundle)
APPVEYOR_BUILD_WORKER_IMAGE: macos-catalina
COMPILER: clang
QT: Qt/5.15/clang_64
2023-02-22 15:45:53 +01:00
QT_VERSION: Qt5_15
BUILD_SYSTEM: "qbs"
ARCH: x64
2023-02-24 19:54:09 +01:00
XCODE_VERSION: 12.3
2023-02-22 15:45:53 +01:00
PLATFORM: "macOS10.13+"
MACOS_DEPLOYMENT_TARGET: 10.13
MULTI_BUNDLE: false
ENABLE_CONAN: false
DEPLOY: true
- job_name: Windows_Qt_5_15_(make_GCC_x86)
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
COMPILER: mingw
QT: Qt\5.15\mingw81_32
QT_VERSION: Qt5_15
BUILD_SYSTEM: "make"
MINGW_PATH: C:\Qt\Tools\mingw810_32\bin
ARCH: x86
PYTHON: "C:\\Python311"
PLATFORM: "Windows7+"
DEPLOY: false
- job_name: Windows_Qt_6_4_(MSVC_x64)
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
COMPILER: msvc
2023-02-25 11:09:58 +01:00
QT: Qt\6.4\msvc2019_64
2023-02-22 15:45:53 +01:00
QT_VERSION: Qt6_4
BUILD_SYSTEM: "qbs"
2023-02-25 19:35:40 +01:00
ENABLE_PCH: true
2023-02-23 09:21:37 +01:00
MSVC_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64"
2023-02-22 15:45:53 +01:00
ARCH: x64
PYTHON: "C:\\Python311-x64"
PLATFORM: "Windows10+"
MSYS2_PACKAGES: false
2023-02-22 15:45:53 +01:00
DEPLOY: false
- job_name: Windows_Qt_6_4_(MSVC_arm64)
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
COMPILER: msvc
2023-02-25 11:09:58 +01:00
QT: Qt\6.4\msvc2019_arm64
2023-02-22 15:45:53 +01:00
QT_VERSION: Qt6_4
BUILD_SYSTEM: "qbs"
2023-02-25 19:35:40 +01:00
ENABLE_PCH: true
2023-02-23 09:21:37 +01:00
MSVC_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\arm64"
2023-02-22 15:45:53 +01:00
ARCH: arm64
PYTHON: "C:\\Python311-x64"
PLATFORM: "Windows10+"
MSYS2_PACKAGES: false
2023-02-22 15:45:53 +01:00
DEPLOY: false
- job_name: Windows_Qt_5_15_(qbs_GCC_x64)
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
COMPILER: mingw
2023-02-26 13:54:29 +01:00
COMPILER_CPPSTD: gnu17
COMPILER_LIBCXX: libstdc++11
2023-02-22 15:45:53 +01:00
QT: Qt\5.15\mingw81_64
QT_VERSION: Qt5_15
BUILD_SYSTEM: "qbs"
2023-02-25 19:35:40 +01:00
ENABLE_PCH: true
2023-02-24 19:54:09 +01:00
GCC_VERSION: 8.1
2023-02-22 15:45:53 +01:00
MINGW_PATH: C:\Qt\Tools\mingw810_64\bin
ARCH: x64
PYTHON: "C:\\Python311-x64"
PLATFORM: "Windows7+"
MSYS2_PACKAGES: false
2023-02-22 15:45:53 +01:00
DEPLOY: false
- job_name: Windows_Qt_5_15_(qbs_MSVC_x64)
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
COMPILER: msvc
QT: Qt\5.15\msvc2019_64
BUILD_SYSTEM: "qbs"
2023-02-25 19:35:40 +01:00
ENABLE_PCH: true
2023-02-23 09:21:37 +01:00
MSVC_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64"
2023-02-22 15:45:53 +01:00
VSVER: 16
ARCH: x64
PYTHON: "C:\\Python311-x64"
PLATFORM: "Windows7+"
MSYS2_PACKAGES: false
2023-02-22 15:45:53 +01:00
DEPLOY: false
- job_name: Windows_Qt_5_15_(make_GCC_x64)
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
COMPILER: mingw
QT: Qt\5.15\mingw81_64
QT_VERSION: Qt5_15
BUILD_SYSTEM: "make"
MINGW_PATH: C:\Qt\Tools\mingw810_64\bin
ARCH: x64
PYTHON: "C:\\Python311-x64"
PLATFORM: "Windows7+"
DEPLOY: false
- job_name: Windows_Qt_5_15_(nmake_MSVC_x64)
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
COMPILER: msvc
QT: Qt\5.15\msvc2019_64
BUILD_SYSTEM: "nmake"
VSVER: 16
ARCH: x64
PYTHON: "C:\\Python311-x64"
PLATFORM: "Windows7+"
DEPLOY: false
- job_name: MacOS_10_15_Qt_5_15 (make)
APPVEYOR_BUILD_WORKER_IMAGE: macos-catalina
COMPILER: clang
QT: Qt/5.15/clang_64
2023-02-22 15:45:53 +01:00
QT_VERSION: Qt5_15
BUILD_SYSTEM: "make"
ARCH: x64
2023-02-24 19:54:09 +01:00
XCODE_VERSION: 12.3
2023-02-22 15:45:53 +01:00
PLATFORM: "macOS10.13+"
DEPLOY: false
- job_name: Windows_Qt_5_6_(MSVC_x64)
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
COMPILER: msvc
QT: Qt\5.6\msvc2015_64
QT_VERSION: Qt5_6
BUILD_SYSTEM: "nmake"
VSVER: 14
ARCH: x64
2023-02-24 19:54:09 +01:00
PYTHON: "C:\\Python38-x64"
2023-02-22 15:45:53 +01:00
PLATFORM: "WindowsXP+"
DEPLOY: false
matrix:
fast_finish: false
exclude:
- platform: x86
job_name: Windows_Qt_6_4_(GCC_x64)
- platform: x86
job_name: Windows_Qt_6_4_(MSVC_x64)
- platform: x86
job_name: Windows_Qt_6_4_(MSVC_arm64)
- platform: x86
job_name: Windows_Qt_5_15_(make_GCC_x64)
- platform: x86
job_name: Windows_Qt_5_15_(nmake_MSVC_x64)
- platform: x86
job_name: Windows_Qt_5_15_(qbs_GCC_x64)
- platform: x86
job_name: Windows_Qt_5_15_(qbs_MSVC_x64)
- platform: x86
job_name: Windows_Qt_5_6_(MSVC_x64)
2023-02-24 14:56:20 +01:00
- platform: x86
job_name: MacOS_12_Qt_6_4 (multibundle)
- platform: x86
job_name: MacOS_12_Qt_6_4 (singlebundle)
- platform: x86
job_name: MacOS_10_15_Qt_5_15 (qbs, multibundle)
- platform: x86
job_name: MacOS_10_15_Qt_5_15 (qbs, singlebundle)
- platform: x86
job_name: MacOS_10_15_Qt_5_15 (make)
2023-02-22 15:45:53 +01:00
- platform: x64
job_name: Windows_Qt_5_15_(make_GCC_x86)
- platform: x64
job_name: Windows_Qt_5_15_(qbs_GCC_x86)
- platform: x64
job_name: Windows_Qt_5_6_(GCC_x86)
for:
#---------------------------------#
2023-02-22 15:45:53 +01:00
# Windows #
#---------------------------------#
2023-02-22 15:45:53 +01:00
-
matrix:
only:
- job_name: Windows_Qt_6_4_(GCC_x64)
- job_name: Windows_Qt_6_4_(MSVC_x64)
- job_name: Windows_Qt_6_4_(MSVC_arm64)
- job_name: Windows_Qt_5_15_(qbs_GCC_x64)
- job_name: Windows_Qt_5_15_(qbs_MSVC_x64)
- job_name: Windows_Qt_5_15_(qbs_GCC_x86)
# clone directory
clone_folder: c:\projects\valentina
2023-02-28 13:31:36 +01:00
cache:
- C:\Users\appveyor\.conan\data -> conan-cache
2023-02-22 15:45:53 +01:00
# scripts that are called at very beginning, before repo cloning
init:
# Uncomment if need access through RDP
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Path before
- path
- set QTDIR=C:\%QT%
2023-02-25 17:01:14 +01:00
- set PATH=%QTDIR%\bin;%QTDIR%\include;C:\Qt\Tools\QtCreator\bin;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\;C:\Program Files\CMake\bin;%PYTHON%;%PYTHON%\Scripts
2023-02-22 15:45:53 +01:00
# Set VC variables for the platform
- ps: |
if ($env:COMPILER -eq "msvc") {
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2022") {
if ($env:ARCH -eq "x64") {
& "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
2023-02-25 19:35:40 +01:00
} elseif ($env:ARCH -eq "arm64") {
& "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat"
2023-02-22 15:45:53 +01:00
} else {
& "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat"
}
} elseif ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2019") {
if ($env:ARCH -eq "x64") {
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
2023-02-25 19:35:40 +01:00
} elseif ($env:ARCH -eq "arm64") {
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat"
2023-02-22 15:45:53 +01:00
} else {
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
}
}
2023-02-25 17:18:34 +01:00
} else {
2023-02-28 09:31:37 +01:00
if ($env:MSYS2_PACKAGES -eq "true") {
& 'C:\msys64\usr\bin\bash' -lc "pacman --noconfirm -Syuu"
& 'C:\msys64\usr\bin\bash' -lc "pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make"
}
2023-02-25 17:23:36 +01:00
$env:Path += ";$env:MINGW_PATH"
2023-02-25 17:18:34 +01:00
$env:CC = "gcc.exe"
$env:CXX = "g++.exe"
2023-02-22 15:45:53 +01:00
}
# Path after
- path
# Check that we have the expected version for Python
- (python --version)
# Install the build dependencies of the project.
- (python -m pip install --upgrade pip)
- if "%DEPLOY%" == "true" (python -m pip install dropbox)
2023-02-25 16:22:45 +01:00
- python -m pip install conan==1.59
2023-02-22 15:45:53 +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"
2023-02-26 19:41:34 +01:00
- dir "%QTDIR%\bin"
2023-02-25 10:59:12 +01:00
- qmake.exe -v
2023-02-22 15:49:26 +01:00
- qbs --version
2023-02-22 15:45:53 +01:00
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
2023-02-23 10:28:07 +01:00
- qbs-setup-toolchains --detect
- qbs-setup-qt %QTDIR%\bin\qmake.exe qt6
2023-02-22 15:45:53 +01:00
- qbs-config defaultProfile qt6
2023-02-23 09:54:21 +01:00
- dir "C:\Qt\Tools"
2023-02-25 16:22:45 +01:00
- conan profile new valentina
- conan profile update settings.build_type=Release valentina
- conan profile update settings.os=Windows valentina
2023-02-22 15:45:53 +01:00
- ps: |
2023-02-25 09:26:21 +01:00
if ($env:ARCH -eq "x64") {
2023-02-25 16:22:45 +01:00
& conan profile update settings.arch=x86_64 valentina
2023-02-25 09:26:21 +01:00
} else {
2023-02-25 16:22:45 +01:00
& conan profile update settings.arch=x86 valentina
2023-02-25 09:26:21 +01:00
}
2023-02-22 15:45:53 +01:00
if ($env:COMPILER -eq "msvc")
{
2023-02-23 10:28:07 +01:00
& qbs-setup-toolchains.exe --type msvc $env:MSVC_PATH\cl.exe $env:COMPILER
& qbs-config.exe profiles.qt6.baseProfile $env:COMPILER
2023-02-25 16:22:45 +01:00
& conan profile update settings.compiler=msvc valentina
& conan profile update settings.compiler.cppstd=17 valentina
& conan profile update settings.compiler.runtime=dynamic valentina
& conan profile update settings.compiler.runtime_type=Release valentina
& conan profile update settings.compiler.version=192 valentina
2023-02-22 15:45:53 +01:00
}
else
{
2023-02-23 10:28:07 +01:00
& qbs-setup-toolchains.exe --type mingw $env:MINGW_PATH\g++.exe $env:COMPILER
& qbs-config.exe profiles.qt6.baseProfile $env:COMPILER
2023-02-25 16:22:45 +01:00
& conan profile update settings.compiler=gcc valentina
2023-02-26 13:54:29 +01:00
& conan profile update settings.compiler.cppstd=$env:COMPILER_CPPSTD valentina
& conan profile update settings.compiler.libcxx=$env:COMPILER_LIBCXX valentina
2023-02-25 16:22:45 +01:00
& conan profile update settings.compiler.version=$env:GCC_VERSION valentina
2023-02-24 19:54:09 +01:00
}
2023-02-24 14:56:20 +01:00
- qbs-config --list profiles
2023-02-22 15:45:53 +01:00
build_script:
2023-02-25 16:22:45 +01:00
- conan install . -s os=Windows --build=xerces-c/3.2.4 -pr valentina
- qbs build -f valentina.qbs -d %APPVEYOR_BUILD_FOLDER%\build --command-echo-mode command-line config:release qbs.installRoot:%APPVEYOR_BUILD_FOLDER%\build\install-root\valentina profile:qt6 project.enableConan:true modules.buildconfig.enableCcache:false project.conanProfiles:valentina modules.buildconfig.enablePCH:%ENABLE_PCH%
2023-02-22 15:45:53 +01:00
test_script:
- qbs -p autotest-runner -d %APPVEYOR_BUILD_FOLDER%\build profile:qt6 config:release
deploy_script:
- ps: scripts/appveyor-deploy.ps1
# Legacy
-
matrix:
only:
- job_name: Windows_Qt_5_15_(make_GCC_x86)
- job_name: Windows_Qt_5_15_(make_GCC_x64)
- job_name: Windows_Qt_5_15_(nmake_MSVC_x64)
- job_name: Windows_Qt_5_6_(GCC_x86)
- job_name: Windows_Qt_5_6_(MSVC_x64)
# clone directory
clone_folder: c:\projects\valentina
# scripts that are called at very beginning, before repo cloning
init:
# Uncomment if need access through RDP
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# Path before
- path
- set QTDIR=C:\%QT%
- 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\
- if NOT "%BUILD_SYSTEM%" == "make" echo "Using Visual Studio %VSVER%.0"
- if "%BUILD_SYSTEM%" == "make" echo "Using MinGW"
# Set VC variables for the platform
- ps: |
if ($env:COMPILER -eq "msvc") {
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2022") {
if ($env:ARCH -eq "x64") {
2023-02-26 19:41:34 +01:00
& "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
2023-02-22 15:45:53 +01:00
} else {
2023-02-26 19:41:34 +01:00
& "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat"
2023-02-22 15:45:53 +01:00
}
} elseif ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2019") {
if ($env:ARCH -eq "x64") {
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
} else {
& "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
}
} elseif ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017") {
if ($env:ARCH -eq "x64") {
& "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
} else {
& "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat"
}
} elseif ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") {
if ($env:ARCH -eq "x64") {
2023-02-26 19:41:34 +01:00
& "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
& "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
2023-02-22 15:45:53 +01:00
} else {
2023-02-26 19:41:34 +01:00
& "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
2023-02-22 15:45:53 +01:00
}
}
}
- if "%BUILD_SYSTEM%" == "make" set PATH=%MINGW_PATH%;%PATH%
- if "%BUILD_SYSTEM%" == "nmake" set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
- if "%DEPLOY%" == "true" set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
# Set paths to libraries
2023-02-23 09:29:57 +01:00
- set PATH=%APPVEYOR_BUILD_FOLDER%\build\src\libs\vpropertyexplorer\bin;%APPVEYOR_BUILD_FOLDER%\build\src\libs\qmuparser\bin;%PATH%
2023-02-22 15:45:53 +01:00
# Path after
- path
# Check that we have the expected version for Python
- if "%DEPLOY%" == "true" (python --version)
# Install the build dependencies of the project.
- if "%DEPLOY%" == "true" (python -m pip install --upgrade pip)
- if "%DEPLOY%" == "true" (python -m pip install dropbox)
# 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"
- qmake -v
before_build:
- cd %APPVEYOR_BUILD_FOLDER%
- md build
2023-02-22 15:45:53 +01:00
# to run your custom scripts instead of automatic MSBuild
build_script:
- cd build
- 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)
- if not "%BUILD_SYSTEM%" == "make" (nmake -s) else (mingw32-make -j%NUMBER_OF_PROCESSORS%)
2023-02-22 15:45:53 +01:00
# to run your custom scripts instead of automatic tests
test_script:
- if "%BUILD_SYSTEM%" == "make" (mingw32-make -s check TESTARGS="-silent")
# prepare to deploy
after_test:
- if "%DEPLOY%" == "true" (mingw32-make install)
2023-02-22 15:45:53 +01:00
# to run your custom scripts instead of provider deployments
deploy_script:
- ps: ../scripts/appveyor-deploy.ps1
2023-02-22 15:45:53 +01:00
#---------------------------------#
# MacOS #
#---------------------------------#
-
matrix:
only:
- job_name: MacOS_12_Qt_6_4 (multibundle)
- job_name: MacOS_12_Qt_6_4 (singlebundle)
- job_name: MacOS_10_15_Qt_5_15 (qbs, multibundle)
- job_name: MacOS_10_15_Qt_5_15 (qbs, singlebundle)
2023-02-28 13:31:36 +01:00
environment:
CONAN_USER_HOME: /Users/appveyor/.conan
cache:
- /Users/appveyor/.conan/data -> conan-cache
2023-02-22 15:45:53 +01:00
init:
2023-02-23 10:12:42 +01:00
- find /Applications -maxdepth 1 -type d -name 'Xcode*.app'
2023-02-22 15:45:53 +01:00
- sudo xcode-select -p
2023-02-24 13:32:43 +01:00
- sudo xcode-select -s /Applications/Xcode-$XCODE_VERSION.app
2023-02-23 10:28:07 +01:00
- sudo xcode-select -p
2023-02-22 15:45:53 +01:00
- brew update > /dev/null
2023-02-26 20:06:54 +01:00
- brew install --force qbs
- export QTDIR="${HOME}/${QT}"
2023-02-25 22:49:58 +01:00
- export PATH="$QTDIR/bin:$HOME/.local/bin:`python3 -m site --user-base`/bin:$PATH"
- echo $PATH
2023-02-25 16:22:45 +01:00
- python3 --version
2023-02-22 15:45:53 +01:00
- |
if [[ "$ENABLE_CONAN" == "true" ]]; then
2023-02-25 16:22:45 +01:00
pip3 install --user --upgrade conan==1.59;
2023-02-22 15:45:53 +01:00
conan --version
fi
- pip3 install --user --upgrade pip dropbox
- clang --version
- qmake --version
- which qmake
- qbs --version
before_build:
- cd ${APPVEYOR_BUILD_FOLDER}
build_script:
- pwd
- |
if [[ "$ENABLE_CONAN" == "true" ]]; then
2023-02-25 16:22:45 +01:00
conan install . -s os=Macos -s os.version=${MACOS_DEPLOYMENT_TARGET} --build=xerces-c/3.2.4
2023-02-22 15:45:53 +01:00
fi
- qbs setup-toolchains --detect
- qbs config --list profiles
2023-02-25 10:59:12 +01:00
- qbs setup-qt ${QTDIR}/bin/qmake qt6
2023-02-23 10:28:07 +01:00
- qbs config defaultProfile qt6
2023-02-22 15:45:53 +01:00
- qbs config profiles.qt6.baseProfile clang
- qbs build -f valentina.qbs -d ${APPVEYOR_BUILD_FOLDER}/build --command-echo-mode command-line config:release modules.buildconfig.enableUnitTests:false modules.buildconfig.enableMultiBundle:${MULTI_BUNDLE} qbs.installRoot:${APPVEYOR_BUILD_FOLDER}/build/install-root profile:qt6 project.enableConan:true project.minimumMacosVersion:${MACOS_DEPLOYMENT_TARGET} modules.buildconfig.enableCcache:false
deploy_script:
- CIRRUS_WORKING_DIR=${APPVEYOR_BUILD_FOLDER} CIRRUS_CHANGE_IN_REPO=${APPVEYOR_REPO_COMMIT} CIRRUS_BRANCH=${APPVEYOR_REPO_BRANCH} ${APPVEYOR_BUILD_FOLDER}/scripts/cirrus-deploy.sh
2023-02-22 15:45:53 +01:00
-
matrix:
only:
- job_name: MacOS_10_15_Qt_5_15 (make)
init:
- export QTDIR="${HOME}/${QT}"
2023-02-25 17:01:14 +01:00
- export PATH="$QTDIR/bin:$PATH"
2023-02-25 10:59:12 +01:00
- echo $PATH
2023-02-24 19:54:09 +01:00
- find /Applications -maxdepth 1 -type d -name 'Xcode*.app'
2023-02-22 15:45:53 +01:00
- sudo xcode-select -p
2023-02-24 13:32:43 +01:00
- sudo xcode-select -s /Applications/Xcode-$XCODE_VERSION.app
2023-02-23 10:28:07 +01:00
- sudo xcode-select -p
2023-02-22 15:45:53 +01:00
- clang --version
2023-02-25 10:59:12 +01:00
- qmake --version
- which qmake
2023-02-22 15:45:53 +01:00
before_build:
- cd ${APPVEYOR_BUILD_FOLDER}
- mkdir build
- cd build
build_script:
- pwd
2023-02-25 10:59:12 +01:00
- qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=checkWarnings CONFIG+=noTests CONFIG+=no_ccache
2023-02-22 15:45:53 +01:00
- make -j$(nproc)
#---------------------------------#
# notifications #
#---------------------------------#
notifications:
# Email
- provider: Email
to:
- dismine@gmail.com
on_build_success: false
on_build_failure: true
on_build_status_changed: true