travis: build mate-common from tarball

rbuj 2019-10-11 00:05:18 +02:00 committed by raveit65
parent 7e46a1eaf0
commit 2319fc2415
1 changed files with 18 additions and 2 deletions

View File

@ -64,6 +64,7 @@ env:
requires: requires:
archlinux: archlinux:
# Useful URL: https://git.archlinux.org/svntogit/community.git/tree/mate-terminal # Useful URL: https://git.archlinux.org/svntogit/community.git/tree/mate-terminal
- autoconf-archive
- clang - clang
- gcc - gcc
- git - git
@ -79,6 +80,7 @@ requires:
debian: debian:
# Useful URL: https://github.com/mate-desktop/debian-packages # Useful URL: https://github.com/mate-desktop/debian-packages
# Useful URL: https://salsa.debian.org/debian-mate-team/mate-terminal # Useful URL: https://salsa.debian.org/debian-mate-team/mate-terminal
- autoconf-archive
- clang - clang
- clang-tools - clang-tools
- cppcheck - cppcheck
@ -98,6 +100,7 @@ requires:
fedora: fedora:
# Useful URL: https://src.fedoraproject.org/cgit/rpms/mate-terminal.git # Useful URL: https://src.fedoraproject.org/cgit/rpms/mate-terminal.git
- autoconf-archive
- clang - clang
- clang-analyzer - clang-analyzer
- cppcheck-htmlreport - cppcheck-htmlreport
@ -113,6 +116,7 @@ requires:
- vte291-devel - vte291-devel
ubuntu: ubuntu:
- autoconf-archive
- clang - clang
- clang-tools - clang-tools
- git - git
@ -154,10 +158,22 @@ before_scripts:
- egrep -lRZ 'G_GNUC_BEGIN_IGNORE_DEPRECATIONS' . | xargs -0 -l sed -i -e 's/G_GNUC_BEGIN_IGNORE_DEPRECATIONS/ /g' - egrep -lRZ 'G_GNUC_BEGIN_IGNORE_DEPRECATIONS' . | xargs -0 -l sed -i -e 's/G_GNUC_BEGIN_IGNORE_DEPRECATIONS/ /g'
- egrep -lRZ 'G_GNUC_END_IGNORE_DEPRECATIONS' . | xargs -0 -l sed -i -e 's/G_GNUC_END_IGNORE_DEPRECATIONS/ /g' - egrep -lRZ 'G_GNUC_END_IGNORE_DEPRECATIONS' . | xargs -0 -l sed -i -e 's/G_GNUC_END_IGNORE_DEPRECATIONS/ /g'
- fi - fi
# Install mate-common from 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
build_scripts: build_scripts:
- ./autogen.sh - ./autogen.sh --enable-compile-warnings=maximum
- scan-build $CHECKERS ./configure - scan-build $CHECKERS ./configure --enable-compile-warnings=maximum
- if [ $CPU_COUNT -gt 1 ]; then - if [ $CPU_COUNT -gt 1 ]; then
- scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT - scan-build $CHECKERS --keep-cc -o html-report make -j $CPU_COUNT
- else - else