diff options
author | Robert Tari <robert@tari.in> | 2021-05-04 17:49:03 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-05-04 17:49:03 +0200 |
commit | d68a7de3d6b359db7b1673108cb2aec6edb6afd5 (patch) | |
tree | ca5f4477f6bdf9db6ed2efe82f176908c81e8026 /.build.yml | |
parent | 5cd5b0c2dfd155fce79333eea4349b4f037a0539 (diff) | |
parent | f2b0b013de253f5eddeacbae718f0b8e19fcc8f7 (diff) | |
download | libayatana-indicator-d68a7de3d6b359db7b1673108cb2aec6edb6afd5.tar.gz libayatana-indicator-d68a7de3d6b359db7b1673108cb2aec6edb6afd5.tar.bz2 libayatana-indicator-d68a7de3d6b359db7b1673108cb2aec6edb6afd5.zip |
Merge branch 'sunweaver-pr/travis-ci'
Attributes GH PR #42: https://github.com/AyatanaIndicators/libayatana-indicator/pull/42
Diffstat (limited to '.build.yml')
-rw-r--r-- | .build.yml | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..b1ed56d --- /dev/null +++ b/.build.yml @@ -0,0 +1,129 @@ +########################################################## +# THE FOLLOWING LINES IS USED BY docker-build +########################################################## +requires: + archlinux: + - autoconf-archive + - clang + - gcc + - git + - make + - startup-notification + - which + - pacman + - mate-common + - gtk3 + - glib2 +# - ayatana-ido + - gobject-introspection + - gtk-doc + - vala + + debian: + # Useful URL: https://salsa.debian.org/debian-ayatana-team/libayatana-indicator + - autopoint + - clang + - clang-tools + - cppcheck + - git + - libtool + - cmake + - cmake-extras + - mate-common + - at-spi2-core + - intltool + - gtk-doc-tools + - libglib2.0-dev + - libgtk2.0-dev + - libgtk-3-dev +# - libayatana-ido3-dev + - gobject-introspection + - libgirepository1.0-dev + - libx11-dev + - libxi-dev + - valac + - systemd + - dbus-test-runner + - xauth + - xvfb + + ubuntu: + - autopoint + - clang + - clang-tools + - git + - libtool + - cmake + - cmake-extras + - mate-common + - at-spi2-core + - intltool + - gtk-doc-tools + - libglib2.0-dev + - libgtk2.0-dev + - libgtk-3-dev +# - libayatana-ido3-dev + - gobject-introspection + - libgirepository1.0-dev + - libx11-dev + - libxi-dev + - valac + - systemd + +variables: + - 'CHECKERS=" + -enable-checker deadcode.DeadStores + -enable-checker alpha.deadcode.UnreachableCode + -enable-checker alpha.core.CastSize + -enable-checker alpha.core.CastToStruct + -enable-checker alpha.core.IdenticalExpr + -enable-checker alpha.core.SizeofPtr + -enable-checker alpha.security.ArrayBoundV2 + -enable-checker alpha.security.MallocOverflow + -enable-checker alpha.security.ReturnPtrRange + -enable-checker alpha.unix.SimpleStream + -enable-checker alpha.unix.cstring.BufferOverlap + -enable-checker alpha.unix.cstring.NotNullTerminated + -enable-checker alpha.unix.cstring.OutOfBounds + -enable-checker alpha.core.FixedAddr + -enable-checker security.insecureAPI.strcpy"' + +before_scripts: + - cd ${START_DIR} + - if [ ! -d ayatana-ido-build ]; then + - git clone --depth 1 https://github.com/AyatanaIndicators/ayatana-ido.git ayatana-ido-build + - fi + - cd ayatana-ido-build + - cmake . -DCMAKE_INSTALL_PREFIX=/usr + - make + - make install + +build_scripts: + - if [ ${DISTRO_NAME} == "debian" ];then + - export CFLAGS+=" -Wsign-compare -Wunused-parameter" + - cppcheck --enable=warning,style,performance,portability,information,missingInclude . + - fi + + - NOCONFIGURE=1 ./autogen.sh + - scan-build $CHECKERS ./configure --prefix=/usr --enable-gtk-doc --enable-compile-warnings=maximum --enable-tests + - if [ $CPU_COUNT -gt 1 ]; then + - if [ ${DISTRO_NAME} == "debian" ];then + - scan-build $CHECKERS --keep-cc --use-cc=clang --use-c++=clang++ -o html-report make -j $CPU_COUNT + - make clean + - fi + - scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT + - else + - if [ ${DISTRO_NAME} == "debian" ];then + - scan-build $CHECKERS --keep-cc --use-cc=clang --use-c++=clang++ -o html-report make + - make clean + - fi + - scan-build $CHECKERS --keep-cc -o html-report make + - fi + +after_scripts: + - if [ ${BUILD_TYPE} == "scripts" ];then + - if [ ${DISTRO_NAME} == "debian" ];then + - make check + - cat tests/test-suite.log + - fi + - fi |