Compare commits

...

9 commits

Author SHA1 Message Date
Roman Telezhynskyi db67a484b9 Fix xcode version. 2023-02-23 11:28:07 +02:00
Roman Telezhynskyi dd3afe808e Help qbs to detect compiler type. 2023-02-23 11:12:42 +02:00
Roman Telezhynskyi 1b71ceb5cd Look inside C:\Qt\Tools\mingw1120_64\bin 2023-02-23 11:04:07 +02:00
Roman Telezhynskyi 0599aaaedd Use MinGW 11.2. 2023-02-23 11:00:16 +02:00
Roman Telezhynskyi b88b4b2285 Fix xcode version. 2023-02-23 10:54:21 +02:00
Roman Telezhynskyi 7deef0e27d Remove double-quotes. 2023-02-23 10:41:46 +02:00
Roman Telezhynskyi 6c367e51ad Fixes. 2023-02-23 10:29:57 +02:00
Roman Telezhynskyi 474185a9fb Invalid yml. 2023-02-23 10:21:37 +02:00
Roman Telezhynskyi adb8667e2b Fixes. 2023-02-23 10:17:19 +02:00

View file

@ -30,9 +30,6 @@ platform:
# environment setup # # environment setup #
#---------------------------------# #---------------------------------#
# clone directory
clone_folder: c:\projects\valentina
# set clone depth # set clone depth
clone_depth: 1 # clone entire repository history if not defined clone_depth: 1 # clone entire repository history if not defined
@ -50,6 +47,7 @@ environment:
QT: Qt\6.4.0\mingw_64 QT: Qt\6.4.0\mingw_64
QT_VERSION: Qt6_4 QT_VERSION: Qt6_4
BUILD_SYSTEM: "qbs" BUILD_SYSTEM: "qbs"
MINGW_PATH: C:\Qt\Tools\mingw1120_64\bin
ARCH: x64 ARCH: x64
PYTHON: "C:\\Python311-x64" PYTHON: "C:\\Python311-x64"
PLATFORM: "Windows10+" PLATFORM: "Windows10+"
@ -86,7 +84,7 @@ environment:
QT_VERSION: Qt6_4 QT_VERSION: Qt6_4
BUILD_SYSTEM: "qbs" BUILD_SYSTEM: "qbs"
ARCH: x64 ARCH: x64
XCODE_VERSION: 12.5 XCODE_VERSION: 13.4.1
PLATFORM: "macOS11+" PLATFORM: "macOS11+"
MACOS_DEPLOYMENT_TARGET: 11.0 MACOS_DEPLOYMENT_TARGET: 11.0
MULTI_BUNDLE: true MULTI_BUNDLE: true
@ -100,7 +98,7 @@ environment:
QT_VERSION: Qt6_4 QT_VERSION: Qt6_4
BUILD_SYSTEM: "qbs" BUILD_SYSTEM: "qbs"
ARCH: x64 ARCH: x64
XCODE_VERSION: 12.5 XCODE_VERSION: 13.4.1
PLATFORM: "macOS11+" PLATFORM: "macOS11+"
MACOS_DEPLOYMENT_TARGET: 11.0 MACOS_DEPLOYMENT_TARGET: 11.0
MULTI_BUNDLE: false MULTI_BUNDLE: false
@ -114,7 +112,7 @@ environment:
QT_VERSION: Qt5_15 QT_VERSION: Qt5_15
BUILD_SYSTEM: "qbs" BUILD_SYSTEM: "qbs"
ARCH: x64 ARCH: x64
XCODE_VERSION: 12.5 XCODE_VERSION: 12.5.1
PLATFORM: "macOS10.13+" PLATFORM: "macOS10.13+"
MACOS_DEPLOYMENT_TARGET: 10.13 MACOS_DEPLOYMENT_TARGET: 10.13
MULTI_BUNDLE: true MULTI_BUNDLE: true
@ -128,7 +126,7 @@ environment:
QT_VERSION: Qt5_15 QT_VERSION: Qt5_15
BUILD_SYSTEM: "qbs" BUILD_SYSTEM: "qbs"
ARCH: x64 ARCH: x64
XCODE_VERSION: 12.5 XCODE_VERSION: 12.5.1
PLATFORM: "macOS10.13+" PLATFORM: "macOS10.13+"
MACOS_DEPLOYMENT_TARGET: 10.13 MACOS_DEPLOYMENT_TARGET: 10.13
MULTI_BUNDLE: false MULTI_BUNDLE: false
@ -153,6 +151,7 @@ environment:
QT: Qt\6.4.0\msvc2019_64 QT: Qt\6.4.0\msvc2019_64
QT_VERSION: Qt6_4 QT_VERSION: Qt6_4
BUILD_SYSTEM: "qbs" BUILD_SYSTEM: "qbs"
MSVC_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64"
ARCH: x64 ARCH: x64
PYTHON: "C:\\Python311-x64" PYTHON: "C:\\Python311-x64"
PLATFORM: "Windows10+" PLATFORM: "Windows10+"
@ -164,6 +163,7 @@ environment:
QT: Qt\6.4.0\msvc2019_arm64 QT: Qt\6.4.0\msvc2019_arm64
QT_VERSION: Qt6_4 QT_VERSION: Qt6_4
BUILD_SYSTEM: "qbs" BUILD_SYSTEM: "qbs"
MSVC_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\arm64"
ARCH: arm64 ARCH: arm64
PYTHON: "C:\\Python311-x64" PYTHON: "C:\\Python311-x64"
PLATFORM: "Windows10+" PLATFORM: "Windows10+"
@ -186,6 +186,7 @@ environment:
COMPILER: msvc COMPILER: msvc
QT: Qt\5.15\msvc2019_64 QT: Qt\5.15\msvc2019_64
BUILD_SYSTEM: "qbs" BUILD_SYSTEM: "qbs"
MSVC_PATH: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64"
VSVER: 16 VSVER: 16
ARCH: x64 ARCH: x64
PYTHON: "C:\\Python311-x64" PYTHON: "C:\\Python311-x64"
@ -222,7 +223,7 @@ environment:
QT_VERSION: Qt5_15 QT_VERSION: Qt5_15
BUILD_SYSTEM: "make" BUILD_SYSTEM: "make"
ARCH: x64 ARCH: x64
XCODE_VERSION: 12.5 XCODE_VERSION: 12.5.1
PLATFORM: "macOS10.13+" PLATFORM: "macOS10.13+"
DEPLOY: false DEPLOY: false
@ -326,19 +327,22 @@ for:
before_build: before_build:
- cd %APPVEYOR_BUILD_FOLDER% - cd %APPVEYOR_BUILD_FOLDER%
- qbs setup-toolchains --detect - qbs-setup-toolchains --detect
- qbs config --list profiles - qbs-setup-qt %QTDIR%\bin\qmake.exe qt6
- qbs setup-qt %QTDIR%\lib\qmake qt6
- qbs-config defaultProfile qt6 - qbs-config defaultProfile qt6
- dir "C:\Qt\Tools"
- ps: | - ps: |
if ($env:COMPILER -eq "msvc") if ($env:COMPILER -eq "msvc")
{ {
& "qbs config profiles.qt6.baseProfile msvc" & qbs-setup-toolchains.exe --type msvc $env:MSVC_PATH\cl.exe $env:COMPILER
& qbs-config.exe profiles.qt6.baseProfile $env:COMPILER
} }
else else
{ {
& "qbs config profiles.qt6.baseProfile mingw" & qbs-setup-toolchains.exe --type mingw $env:MINGW_PATH\g++.exe $env:COMPILER
} & qbs-config.exe profiles.qt6.baseProfile $env:COMPILER
}
- qbs-config --list profiles
build_script: build_script:
- 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 - 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
@ -395,10 +399,10 @@ for:
} }
} elseif ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") { } elseif ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015") {
if ($env:ARCH -eq "x64") { if ($env:ARCH -eq "x64") {
& "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64" & "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" & "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat x86_amd64"
} else { } else {
& "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86" & "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat x86"
} }
} }
} }
@ -406,7 +410,7 @@ for:
- if "%BUILD_SYSTEM%" == "nmake" set PATH=C:\Qt\Tools\QtCreator\bin;%PATH% - if "%BUILD_SYSTEM%" == "nmake" set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%
- if "%DEPLOY%" == "true" set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% - if "%DEPLOY%" == "true" set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
# Set paths to libraries # Set paths to libraries
- set PATH=C:\projects\valentina\build\src\libs\vpropertyexplorer\bin;C:\projects\valentina\build\src\libs\qmuparser\bin;%PATH% - set PATH=%APPVEYOR_BUILD_FOLDER%\build\src\libs\vpropertyexplorer\bin;%APPVEYOR_BUILD_FOLDER%\build\src\libs\qmuparser\bin;%PATH%
# Path after # Path after
- path - path
# Check that we have the expected version for Python # Check that we have the expected version for Python
@ -454,9 +458,10 @@ for:
- job_name: MacOS_10_15_Qt_5_15 (qbs, singlebundle) - job_name: MacOS_10_15_Qt_5_15 (qbs, singlebundle)
init: init:
- xcode-select --install - find /Applications -maxdepth 1 -type d -name 'Xcode*.app'
- sudo xcode-select -p
- sudo xcode-select -s /Applications/Xcode_$XCODE_VERSION.app
- sudo xcode-select -p - sudo xcode-select -p
- sudo xcode-select -s /Applications/Xcode_$XCODE_VERSION.app/Contents/Developer
- brew update > /dev/null - brew update > /dev/null
- brew install coreutils qbs cmake - brew install coreutils qbs cmake
- | - |
@ -483,7 +488,7 @@ for:
- qbs setup-toolchains --detect - qbs setup-toolchains --detect
- qbs config --list profiles - qbs config --list profiles
- qbs setup-qt ${QT}/qmake qt6 - qbs setup-qt ${QT}/qmake qt6
- qbs-config defaultProfile qt6 - qbs config defaultProfile qt6
- qbs config profiles.qt6.baseProfile clang - 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 - 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
@ -496,9 +501,10 @@ for:
- job_name: MacOS_10_15_Qt_5_15 (make) - job_name: MacOS_10_15_Qt_5_15 (make)
init: init:
- xcode-select --install - find /Applications -maxdepth 1 -type d -name 'Xcode*.ap
- sudo xcode-select -p
- sudo xcode-select -s /Applications/Xcode_$XCODE_VERSION.app
- sudo xcode-select -p - sudo xcode-select -p
- sudo xcode-select -s /Applications/Xcode_$XCODE_VERSION.app/Contents/Developer
- clang --version - clang --version
- ${QT}/qmake --version - ${QT}/qmake --version
- which ${QT}/qmake - which ${QT}/qmake