Skip to content
Permalink
Browse files

fixed make distcheck on debian

  • Loading branch information...
yetist authored and raveit65 committed Feb 13, 2019
1 parent 5081e8f commit 5919cb0ab354ec7d220694bca2cace402a56b7ef
Showing with 10 additions and 7 deletions.
  1. +10 −7 .travis.yml
@@ -134,19 +134,22 @@ configures:

before_scripts:
# These scripts should keep silent.
- if [ ${DISTRO_NAME} == "debian" ];then
- curl -Ls -o debian.sh https://github.com/mate-desktop/mate-dev-scripts/raw/os-fix/travis/debian.sh
- bash ./debian.sh
- fi

- cd ${START_DIR}
- '[ -f mate-desktop-1.21.2.tar.xz ] || curl -Ls -o mate-desktop-1.21.2.tar.xz http://pub.mate-desktop.org/releases/1.21/mate-desktop-1.21.2.tar.xz'
- tar xf mate-desktop-1.21.2.tar.xz
- cd mate-desktop-1.21.2
- 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 >/dev/null 2>&1
- ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --libexecdir=/usr/lib/x86_64-linux-gnu
- else
- ./configure --prefix=/usr >/dev/null 2>&1
- ./configure --prefix=/usr
- fi
- make > /dev/null 2>&1
- make install >/dev/null 2>&1
- make
- make install

after_scripts:
- make distcheck > /dev/null
# It will fail on debian, so it always returns 0, but can see the error message.
- 'if [ $? -ne 0 ];then RED="\033[0;31m"; NC="\033[0m"; printf "${RED}!!! ERROR: Run make distcheck failed.${NC}\n"; fi'
- make distcheck

0 comments on commit 5919cb0

Please sign in to comment.
You can’t perform that action at this time.