diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-26 10:09:40 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-26 10:09:40 +0200 |
commit | e128c176615e7b77511ff632f96c208033b63b86 (patch) | |
tree | 52dc6be65d7f7688770620986d271454fc8dd8e2 /.build.yml | |
parent | bde3617182582e2c0c341b847b65e4f280115736 (diff) | |
download | ayatana-ido-e128c176615e7b77511ff632f96c208033b63b86.tar.gz ayatana-ido-e128c176615e7b77511ff632f96c208033b63b86.tar.bz2 ayatana-ido-e128c176615e7b77511ff632f96c208033b63b86.zip |
Revert ".build.yml: Drop autogen.sh support; Run unit tests in build_scripts: target."
This reverts commit bde3617182582e2c0c341b847b65e4f280115736.
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 25 |
1 files changed, 20 insertions, 5 deletions
@@ -6,10 +6,12 @@ requires: - clang - gcc - git + - make - startup-notification - which - cmake - cmake-extras + - mate-common - glib2 - gobject-introspection - gtk3 @@ -20,12 +22,14 @@ requires: debian: # Useful URL: https://salsa.debian.org/debian-ayatana-team/ayatana-ido + - autopoint - clang - clang-tools - cppcheck - git - cmake - cmake-extras + - mate-common - gobject-introspection - gtk-doc-tools - libgirepository1.0-dev @@ -41,12 +45,14 @@ requires: - xvfb ubuntu: + - autopoint - clang - clang-tools - cppcheck - git - cmake - cmake-extras + - mate-common - gobject-introspection - gtk-doc-tools - libgirepository1.0-dev @@ -85,7 +91,10 @@ build_scripts: - cppcheck --enable=warning,style,performance,portability,information,missingInclude . - fi - - - if [ -e ./CMakeLists.txt ]; then + - 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 [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ]; then - scan-build $CHECKERS cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_TESTS=ON - else @@ -108,9 +117,15 @@ build_scripts: - fi - scan-build $CHECKERS --keep-cc -o html-report make - fi - - XVFB_RUN="$(which xvfb-run || true)" - - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ];then - - if [ -e ./CMakeLists.txt ]; then - - ${XVFB_RUN} make test + +after_scripts: + - if [ ${BUILD_TYPE} == "scripts" ];then + - XVFB_RUN="$(which xvfb-run || true)" + - if [ ${DISTRO_NAME} == "debian" ] || [ ${DISTRO_NAME} == "ubuntu" ];then + - if [ -e ./autogen.sh ]; then + - ${XVFB_RUN} make check + - elif [ -e ./CMakeLists.txt ]; then + - ${XVFB_RUN} make test + - fi - fi - fi |