aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-06 14:04:47 +0200
committerRobert Tari <robert@tari.in>2021-05-11 11:00:37 +0200
commit13c1c80b1e0cedea938960baf2229e29ab350830 (patch)
treec483b1f431f6c18f99699f6e8cee07c14e3f7189
parentaa6723b9cc3dcac5b9bdd87944a8c99b74f16ba2 (diff)
downloadlibayatana-indicator-13c1c80b1e0cedea938960baf2229e29ab350830.tar.gz
libayatana-indicator-13c1c80b1e0cedea938960baf2229e29ab350830.tar.bz2
libayatana-indicator-13c1c80b1e0cedea938960baf2229e29ab350830.zip
Travis CI: Also support CMake based CI builds.
-rw-r--r--.build.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/.build.yml b/.build.yml
index 261f72e..16d1816 100644
--- a/.build.yml
+++ b/.build.yml
@@ -104,15 +104,15 @@ build_scripts:
- cppcheck --enable=warning,style,performance,portability,information,missingInclude .
- fi
-
- - if [ -e ./autogen.sh ]; then
- - NOCONFIGURE=1 ./autogen.sh
- - scan-build $CHECKERS ./configure --prefix=/usr --enable-gtk-doc --enable-compile-warnings=maximum
- - elif [ -e ./CMakeLists.txt ]; then
+ - if [ -e ./CMakeLists.txt ]; then
- if [ ${DISTRO_NAME} == "debian" ];then
- scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON
- else
- scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON
- fi
+ - elif [ -e ./autogen.sh ]; then
+ - NOCONFIGURE=1 ./autogen.sh
+ - scan-build $CHECKERS ./configure --prefix=/usr --enable-gtk-doc --enable-compile-warnings=maximum
- else
- exit 1
- fi
@@ -135,11 +135,11 @@ after_scripts:
- if [ ${BUILD_TYPE} == "scripts" ];then
- XVFB_RUN="$(which xvfb-run || true)"
- if [ ${DISTRO_NAME} == "debian" ];then
- - if [ -e ./autogen.sh ]; then
+ - if [ -e ./CMakeLists.txt ]; then
+ - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test
+ - elif [ -e ./autogen.sh ]; then
- ${XVFB_RUN} make check
- cat tests/test-suite.log
- - elif [ -e ./CMakeLists.txt ]; then
- - ${XVFB_RUN} env CTEST_OUTPUT_ON_FAILURE=1 make test
- fi
- fi
- fi