aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-02-18 03:36:07 +0100
committerRobert Tari <robert@tari.in>2022-02-18 08:22:01 +0100
commite6f52e9177b1a103961105d9383314b00011a123 (patch)
treec03681583d0a4764aa28a23fe5b4b3fd310bb36b /.build.yml
parent627d6852c6511c5f9498d77df57010435f2cd518 (diff)
downloadayatana-indicator-power-e6f52e9177b1a103961105d9383314b00011a123.tar.gz
ayatana-indicator-power-e6f52e9177b1a103961105d9383314b00011a123.tar.bz2
ayatana-indicator-power-e6f52e9177b1a103961105d9383314b00011a123.zip
.build.yml: Add ENABLE_LOMIRI_FEATURES flag and adapt build flow
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml16
1 files changed, 15 insertions, 1 deletions
diff --git a/.build.yml b/.build.yml
index 955779a..1add2ae 100644
--- a/.build.yml
+++ b/.build.yml
@@ -33,6 +33,7 @@ requires:
- cmake-extras
- intltool
# - libayatana-common-dev
+# - lomiri-schemas
- liblomiri-url-dispatcher-dev
- gobject-introspection
- libgirepository1.0-dev
@@ -123,6 +124,17 @@ before_scripts:
- make install
- cd -
- rm -Rf libayatana-common-build/
+ -
+ - cd ${START_DIR}
+ - if [ ! -d lomiri-schemas-build ]; then
+ - git clone --depth 1 https://gitlab.com/ubports/core/lomiri-schemas.git lomiri-schemas-build
+ - fi
+ - cd lomiri-schemas-build
+ - cmake . -DCMAKE_INSTALL_PREFIX=/usr
+ - make
+ - make install
+ - cd -
+ - rm -Rf lomiri-schemas-build/
build_scripts:
- if [ ${DISTRO_NAME} == "debian" ];then
@@ -130,7 +142,9 @@ build_scripts:
- fi
-
- if [ -e ./CMakeLists.txt ]; then
- - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ]; then
+ - if [ ${DISTRO_NAME} == "debian" ]; then
+ - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON -DENABLE_TESTS=ON -DENABLE_LOMIRI_FEATURES=ON
+ - elif [ ${DISTRO_NAME} == "ubuntu" ]; then
- scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON -DENABLE_TESTS=ON
- else
- scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_WERROR=ON