Define environments on task level.
This commit is contained in:
parent
352a5398ad
commit
dac5cd7795
13
.cirrus.yml
13
.cirrus.yml
|
@ -5,6 +5,7 @@ env:
|
||||||
CCACHE_DIR: "/tmp/ccache_dir"
|
CCACHE_DIR: "/tmp/ccache_dir"
|
||||||
CCACHE_NOHASHDIR: "1" # Debug info might contain a stale path if the build dir changes, but this is fine
|
CCACHE_NOHASHDIR: "1" # Debug info might contain a stale path if the build dir changes, but this is fine
|
||||||
CCACHE_CPP2: "yes"
|
CCACHE_CPP2: "yes"
|
||||||
|
QT_SELECT: "qt5"
|
||||||
|
|
||||||
### Task templates
|
### Task templates
|
||||||
|
|
||||||
|
@ -48,6 +49,11 @@ macos_task_template: &MACOS_TASK_TEMPLATE
|
||||||
# ^ add user paths
|
# ^ add user paths
|
||||||
PIP_CACHE_DIR: ${HOME}/.cache/pip
|
PIP_CACHE_DIR: ${HOME}/.cache/pip
|
||||||
DEPLOY: "true"
|
DEPLOY: "true"
|
||||||
|
QTDIR: "/usr/local/opt/qt5"
|
||||||
|
PATH: "$QTDIR/bin:$PATH"
|
||||||
|
LDFLAGS: "-L$QTDIR/lib"
|
||||||
|
CPPFLAGS: "-I$QTDIR/include"
|
||||||
|
PKG_CONFIG_PATH: "/usr/local/opt/qt5/lib/pkgconfig"
|
||||||
global_homebrew_cache:
|
global_homebrew_cache:
|
||||||
folder: "/usr/local/Homebrew"
|
folder: "/usr/local/Homebrew"
|
||||||
local_homebrew_cache:
|
local_homebrew_cache:
|
||||||
|
@ -61,16 +67,11 @@ macos_task_template: &MACOS_TASK_TEMPLATE
|
||||||
- python3 --version
|
- python3 --version
|
||||||
- pip3 install --user --upgrade pip dropbox
|
- pip3 install --user --upgrade pip dropbox
|
||||||
build_script:
|
build_script:
|
||||||
- QTDIR="/usr/local/opt/qt5"
|
|
||||||
- PATH="$QTDIR/bin:$PATH"
|
|
||||||
- LDFLAGS=-L$QTDIR/lib
|
|
||||||
- CPPFLAGS=-I$QTDIR/include
|
|
||||||
- PKG_CONFIG_PATH=/usr/local/opt/qt5/lib/pkgconfig
|
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- pwd
|
- pwd
|
||||||
- qmake --version
|
- qmake --version
|
||||||
- QT_SELECT=qt5 qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=checkWarnings CONFIG+=noTests
|
- qmake ../Valentina.pro -r CONFIG+=noDebugSymbols CONFIG+=checkWarnings CONFIG+=noTests
|
||||||
- ${COMPILER} --version
|
- ${COMPILER} --version
|
||||||
- make -j$(nproc)
|
- make -j$(nproc)
|
||||||
deploy_script:
|
deploy_script:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user