Redesign.

This commit is contained in:
Roman Telezhynskyi 2023-02-15 11:55:40 +02:00
parent 1222f8bdbe
commit 6e39dc9471

View File

@ -17,18 +17,7 @@ regular_task_template: &REGULER_TASK_TEMPLATE
ccache_cache: ccache_cache:
folder: "/tmp/ccache_dir" folder: "/tmp/ccache_dir"
regular_linux_task_template: &REGULER_LINUX_TASK_TEMPLATE
<< : *REGULER_TASK_TEMPLATE
env:
DEBIAN_FRONTEND: "noninteractive"
PACKAGE_MANAGER_INSTALL: "apt-get -qq update && apt-get install -y"
container:
cpu: 4
linux_qt6_task_template: &LINUX_QT6_TASK_TEMPLATE linux_qt6_task_template: &LINUX_QT6_TASK_TEMPLATE
<< : *REGULER_LINUX_TASK_TEMPLATE
env:
QT_SELECT: "qt6"
install_script: install_script:
- bash -c "$PACKAGE_MANAGER_INSTALL -y qbs qt6-base-dev qt6-l10n-tools libqt6svg6-dev qt6-base-dev-tools qmake6 qbs libxerces-c-dev poppler-utils xvfb ccache" - bash -c "$PACKAGE_MANAGER_INSTALL -y qbs qt6-base-dev qt6-l10n-tools libqt6svg6-dev qt6-base-dev-tools qmake6 qbs libxerces-c-dev poppler-utils xvfb ccache"
build_script: build_script:
@ -49,9 +38,6 @@ linux_qt6_task_template: &LINUX_QT6_TASK_TEMPLATE
- xvfb-run -a qbs -p autotest-runner - xvfb-run -a qbs -p autotest-runner
linux_qt5_qmake_task_template: &LINUX_QT5_QMAKE_TASK_TEMPLATE linux_qt5_qmake_task_template: &LINUX_QT5_QMAKE_TASK_TEMPLATE
<< : *REGULER_LINUX_TASK_TEMPLATE
env:
QT_SELECT: "qt5"
install_script: install_script:
- bash -c "$PACKAGE_MANAGER_INSTALL qtbase5-dev libqt5svg5-dev qttools5-dev-tools libqt5xmlpatterns5-dev libqt5core5a libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 poppler-utils xvfb ccache" - bash -c "$PACKAGE_MANAGER_INSTALL qtbase5-dev libqt5svg5-dev qttools5-dev-tools libqt5xmlpatterns5-dev libqt5core5a libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 poppler-utils xvfb ccache"
build_script: build_script:
@ -70,9 +56,6 @@ linux_qt5_qmake_task_template: &LINUX_QT5_QMAKE_TASK_TEMPLATE
- xvfb-run -a make --silent check TESTARGS="-silent" - xvfb-run -a make --silent check TESTARGS="-silent"
linux_qt5_qbs_task_template: &LINUX_QT5_QBS_TASK_TEMPLATE linux_qt5_qbs_task_template: &LINUX_QT5_QBS_TASK_TEMPLATE
<< : *REGULER_LINUX_TASK_TEMPLATE
env:
QT_SELECT: "qt5"
install_script: install_script:
- bash -c "$PACKAGE_MANAGER_INSTALL qbs qtbase5-dev libqt5svg5-dev qttools5-dev-tools libqt5xmlpatterns5-dev libqt5core5a libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 poppler-utils xvfb ccache" - bash -c "$PACKAGE_MANAGER_INSTALL qbs qtbase5-dev libqt5svg5-dev qttools5-dev-tools libqt5xmlpatterns5-dev libqt5core5a libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 poppler-utils xvfb ccache"
build_script: build_script:
@ -150,62 +133,52 @@ linux_qt5_qbs_task_template: &LINUX_QT5_QBS_TASK_TEMPLATE
# PLATFORM: "macOS_10.15+" # PLATFORM: "macOS_10.15+"
task: task:
name: 'latest GCC [Qt5 QMake]' << : *REGULER_TASK_TEMPLATE
container:
image: teeks99/gcc-ubuntu:latest
memory: 16G # Set to 16GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container
<< : *LINUX_QT5_QMAKE_TASK_TEMPLATE
env: env:
COMPILER: g++ DEBIAN_FRONTEND: "noninteractive"
GCC_COLORS: 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' PACKAGE_MANAGER_INSTALL: "apt-get -qq update && apt-get install -y"
TOOLCHAIN: x86_64-pc-linux-gnu-gcc-12_2
COMPILER_BIN: "gcc|g\+\+"
task:
name: 'latest GCC [Qt5 QBS]'
container: container:
image: teeks99/gcc-ubuntu:latest cpu: 4
memory: 16G # Set to 16GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container matrix:
<< : *LINUX_QT5_QBS_TASK_TEMPLATE - container:
env: image: dismine/clang-ubuntu:latest
COMPILER: gcc memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container
GCC_COLORS: 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' env:
TOOLCHAIN: x86_64-pc-linux-gnu-gcc-12_2 COMPILER: clang
COMPILER_BIN: "gcc|g\+\+" COMPILER_BIN: clang
TOOLCHAIN: clang-16
task: matrix:
name: 'latest GCC [Qt6]' - name: 'latest Clang [Qt5 QMake]'
container: << : *LINUX_QT5_QMAKE_TASK_TEMPLATE
image: teeks99/gcc-ubuntu:latest env:
memory: 16G # Set to 16GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container QT_SELECT: "qt5"
<< : *LINUX_QT6_TASK_TEMPLATE - name: 'latest Clang [Qt5 QBS]'
env: << : *LINUX_QT5_QBS_TASK_TEMPLATE
COMPILER: gcc env:
GCC_COLORS: 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' QT_SELECT: "qt5"
TOOLCHAIN: x86_64-pc-linux-gnu-gcc-12_2 - name: 'latest Clang [Qt6]'
COMPILER_BIN: "gcc|g\+\+" << : *LINUX_QT6_TASK_TEMPLATE
env:
linux_clang_task_template: &LINUX_CLANG_TASK_TEMPLATE QT_SELECT: "qt6"
container: - container:
image: dismine/clang-ubuntu:latest image: eeks99/gcc-ubuntu:latest
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container memory: 16G # Set to 16GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container
env: env:
COMPILER: clang COMPILER: gcc
COMPILER_BIN: clang GCC_COLORS: 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
TOOLCHAIN: clang-16 TOOLCHAIN: x86_64-pc-linux-gnu-gcc-12_2
COMPILER_BIN: "gcc|g\\+\\+"
task: matrix:
name: 'latest Clang [Qt5 QMake]' - name: 'latest GCC [Qt5 QMake]'
<< : *LINUX_CLANG_TASK_TEMPLATE << : *LINUX_QT5_QMAKE_TASK_TEMPLATE
<< : *LINUX_QT5_QMAKE_TASK_TEMPLATE env:
QT_SELECT: "qt5"
task: - name: 'latest GCC [Qt5 QBS]'
name: 'latest Clang [Qt5 QBS]' << : *LINUX_QT5_QBS_TASK_TEMPLATE
<< : *LINUX_CLANG_TASK_TEMPLATE env:
<< : *LINUX_QT5_QBS_TASK_TEMPLATE QT_SELECT: "qt5"
- name: 'latest Clang [Qt6]'
task: << : *LINUX_QT6_TASK_TEMPLATE
name: 'latest Clang [Qt6]' env:
<< : *LINUX_CLANG_TASK_TEMPLATE QT_SELECT: "qt6"
<< : *LINUX_QT6_TASK_TEMPLATE