valentina_old/.cirrus.yml

119 lines
3.6 KiB
YAML
Raw Normal View History

2021-09-23 09:57:27 +02:00
### Global defaults
env:
CCACHE_SIZE: "200M"
CCACHE_DIR: "/tmp/ccache_dir"
CCACHE_NOHASHDIR: "1" # Debug info might contain a stale path if the build dir changes, but this is fine
2021-09-25 07:42:27 +02:00
CCACHE_CPP2: "yes"
2021-09-25 17:25:49 +02:00
QT_SELECT: "qt5"
2021-09-23 09:57:27 +02:00
### Task templates
# https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks
filter_template: &FILTER_TEMPLATE
skip: "!changesInclude('.cirrus.yml', '**.{h,cpp,c,pro,pri,ts,ui,png}')"
2021-09-25 07:42:27 +02:00
regular_task_template: &REGULER_TASK_TEMPLATE
2021-09-23 09:57:27 +02:00
<< : *FILTER_TEMPLATE
ccache_cache:
folder: "/tmp/ccache_dir"
2021-09-25 07:42:27 +02:00
linux_task_template: &LINUX_TASK_TEMPLATE
<< : *REGULER_TASK_TEMPLATE
env:
DEBIAN_FRONTEND: "noninteractive"
PACKAGE_MANAGER_INSTALL: "apt-get -qq update && apt-get install -y"
container:
cpu: 4
2021-09-24 12:08:12 +02:00
install_script:
- bash -c "$PACKAGE_MANAGER_INSTALL dialog apt-utils locales locales-all qtbase5-dev libqt5svg5-dev qttools5-dev-tools libqt5xmlpatterns5-dev libqt5core5a libqt5gui5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5xml5 libqt5xmlpatterns5 poppler-utils xvfb ccache"
2021-09-24 12:08:12 +02:00
build_script:
2021-09-23 09:57:27 +02:00
- uname -a
2021-09-26 19:11:27 +02:00
- echo $PATH
2021-09-23 09:57:27 +02:00
- which qmake
- mkdir build
- cd build
- pwd
- qmake --version
- qmake ../Valentina.pro -r -spec linux-${COMPILER} CONFIG+=noDebugSymbols CONFIG+=checkWarnings
- ${COMPILER} --version
2021-09-23 09:57:27 +02:00
- make -j$(nproc)
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$CIRRUS_WORKING_DIR/build/src/libs/vpropertyexplorer/bin:$CIRRUS_WORKING_DIR/build/src/libs/qmuparser/bin"
- xvfb-run -a make --silent check TESTARGS="-silent"
macos_task_template: &MACOS_TASK_TEMPLATE
2021-09-25 07:42:27 +02:00
<< : *REGULER_TASK_TEMPLATE
2021-09-24 18:20:11 +02:00
timeout_in: 120m
2021-09-23 09:57:27 +02:00
env:
ACCESS_TOKEN: ENCRYPTED[81e0b2381ffb628b73f5c94f834010e6631191e0ad03cdd0850d440fb2737a74b68131d842030f010c1bf73ab4cdc1ae]
2021-09-26 19:11:27 +02:00
QTDIR: "/usr/local/opt/qt5"
PATH: ${HOME}/.local/bin:$QTDIR/bin:${PATH}
2021-09-24 15:53:29 +02:00
# ^ add user paths
PIP_CACHE_DIR: ${HOME}/.cache/pip
DEPLOY: "true"
2021-09-25 17:25:49 +02:00
LDFLAGS: "-L$QTDIR/lib"
CPPFLAGS: "-I$QTDIR/include"
PKG_CONFIG_PATH: "/usr/local/opt/qt5/lib/pkgconfig"
2021-09-23 09:57:27 +02:00
global_homebrew_cache:
folder: "/usr/local/Homebrew"
local_homebrew_cache:
folder: "$HOME/Library/Caches/Homebrew"
2021-09-24 15:53:29 +02:00
pip_cache:
folder: ${PIP_CACHE_DIR}
2021-09-24 12:08:12 +02:00
install_script:
- brew update > /dev/null
2021-09-25 07:42:27 +02:00
- brew install qt5 coreutils ccache
2021-09-23 09:57:27 +02:00
- chmod -R 755 /usr/local/opt/qt5/*
- python3 --version
2021-09-24 15:53:29 +02:00
- pip3 install --user --upgrade pip dropbox
2021-09-24 12:08:12 +02:00
build_script:
2021-09-23 09:57:27 +02:00
- mkdir build
- cd build
- pwd
- qmake --version
2021-09-25 17:25:49 +02:00
- qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=checkWarnings CONFIG+=noTests
- ${COMPILER} --version
2021-09-23 09:57:27 +02:00
- make -j$(nproc)
2021-09-24 12:08:12 +02:00
deploy_script:
- pwd
2021-09-25 06:44:31 +02:00
- $CIRRUS_WORKING_DIR/scripts/cirrus-deploy.sh
2021-09-25 07:50:43 +02:00
before_cache_script:
- brew cleanup
env:
COMPILER: clang
2021-09-23 09:57:27 +02:00
task:
name: 'macOS Catalina 10.15 [no tests]'
macos_instance:
2021-09-23 09:57:27 +02:00
image: catalina-xcode-11.3.1
<< : *MACOS_TASK_TEMPLATE
env:
PLATFORM: "macOS_10.14+"
2021-09-23 09:57:27 +02:00
task:
name: 'macOS Big Sur 11 [no tests]'
macos_instance:
2021-09-23 09:57:27 +02:00
image: big-sur-xcode-12.4
<< : *MACOS_TASK_TEMPLATE
env:
PLATFORM: "macOS_10.15+"
2021-09-23 09:57:27 +02:00
task:
name: 'latest GCC'
container:
image: teeks99/gcc-ubuntu:latest
2021-09-25 20:55:39 +02:00
memory: 16G # Set to 16GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container
2021-09-23 09:57:27 +02:00
<< : *LINUX_TASK_TEMPLATE
2021-09-24 12:39:43 +02:00
env:
COMPILER: g++
2021-09-25 19:57:24 +02:00
GCC_COLORS: 'error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
2021-09-23 09:57:27 +02:00
task:
name: 'latest Clang'
container:
image: silkeh/clang:latest
2021-09-25 20:55:39 +02:00
memory: 8G # Set to 8GB to avoid OOM. https://cirrus-ci.org/guide/linux/#linux-container
2021-09-23 09:57:27 +02:00
<< : *LINUX_TASK_TEMPLATE
2021-09-24 12:39:43 +02:00
env:
COMPILER: clang