diff options
-rw-r--r-- | .travis.yml | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index 8b6daf1..ef58b77 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,6 +64,7 @@ env: requires: archlinux: # Useful URL: https://git.archlinux.org/svntogit/community.git/tree/mate-media + - autoconf-archive - clang - gcc - git @@ -79,6 +80,7 @@ requires: debian: # Useful URL: https://github.com/mate-desktop/debian-packages # Useful URL: https://salsa.debian.org/debian-mate-team/mate-media + - autoconf-archive - clang - clang-tools - cppcheck @@ -97,6 +99,7 @@ requires: fedora: # Useful URL: https://src.fedoraproject.org/cgit/rpms/mate-media.git + - autoconf-archive - clang - clang-analyzer - cppcheck-htmlreport @@ -114,6 +117,7 @@ requires: - redhat-rpm-config ubuntu: + - autoconf-archive - clang - clang-tools - git @@ -146,14 +150,8 @@ variables: -enable-checker alpha.core.FixedAddr -enable-checker security.insecureAPI.strcpy"' -before_scripts: - - if [ ${DISTRO_NAME} == "debian" ];then - - curl -Ls -o debian.sh https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/debian.sh - - bash ./debian.sh - - fi - build_scripts: - - ./autogen.sh + - ./autogen.sh --enable-compile-warnings=maximum - scan-build $CHECKERS ./configure - if [ $CPU_COUNT -gt 1 ]; then - scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT @@ -164,6 +162,25 @@ build_scripts: - cppcheck --enable=warning,style,performance,portability,information,missingInclude . - fi +before_scripts: + # Debian - patch intltool-update + - if [ ${DISTRO_NAME} == "debian" ];then + - curl -Ls -o debian.sh https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/debian.sh + - bash ./debian.sh + - fi + # Install mate-common fron tarball + - cd ${START_DIR} + - '[ -f mate-common-1.23.3.tar.xz ] || curl -Ls -o mate-common-1.23.3.tar.xz http://pub.mate-desktop.org/releases/1.23/mate-common-1.23.3.tar.xz' + - tar xf mate-common-1.23.3.tar.xz + - cd mate-common-1.23.3 + - if [ ${DISTRO_NAME} == "debian" -o ${DISTRO_NAME} == "ubuntu" ];then + - ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu + - else + - ./configure --prefix=/usr + - fi + - make + - make install + after_scripts: - if [ ${DISTRO_NAME} == "fedora" ];then - cppcheck --xml --output-file=cppcheck.xml --enable=warning,style,performance,portability,information,missingInclude . |