From e2f72bd4450977c4ca7dadc28fef9efd6ff9bff1 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Mon, 22 May 2017 22:51:20 +0300 Subject: [PATCH] Travis CI: Test also 'make distcheck' Dependencies used to generate configure: * autoconf 2.69 * automake 1.15 * m4 1.4.18 * libtool 2.4.6 * pkg-config 0.29.2 --- .travis.yml | 46 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index e495e32a..11d8b278 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,17 @@ matrix: branch_pattern: master build_command_prepend: "./configure --enable-cplusplus --disable-shared --enable-single-obj-compilation" build_command: make -j check CFLAGS_EXTRA=-DLINT2 + - os: linux + dist: trusty + env: + - MAKEFILE_TARGETS="distcheck" + - AUTOMAKE_VER=1.15 + - M4_VER=1.4.18 + - LIBTOOL_VER=2.4.6 + - PKG_CONFIG_VER=0.29.2 + - os: linux + env: + - MAKEFILE_TARGETS="dist" - os: linux addons: apt: @@ -359,9 +370,6 @@ matrix: - CONF_OPTIONS="--host=i686-w64-mingw32 --enable-munmap" - MAKEFILE_TARGETS="all" - CFLAGS_EXTRA="-fno-omit-frame-pointer" - - os: linux - env: - - MAKEFILE_TARGETS="dist" before_install: - if [[ "$CPPCHECK_ENABLE" != "" ]]; then @@ -369,6 +377,38 @@ before_install: ~/cppcheck -b master; make --directory ~/cppcheck -j CXXFLAGS="-O3 -march=native -D NDEBUG"; fi +- if [[ "$AUTOMAKE_VER" != "" || "$LIBTOOL_VER" != "" + || "$M4_VER" != "" || "$PKG_CONFIG_VER" != "" ]]; then + GNUTOOLS_ROOT=`pwd`/gnu-tools; + export PATH=$GNUTOOLS_ROOT/bin:$PATH; + fi +- if [[ "$M4_VER" != "" ]]; then + M4_XZ_URL=https://ftp.gnu.org/gnu/m4/m4-$M4_VER.tar.xz; + wget -O - $M4_XZ_URL | tar xf - --xz --directory ~; + (cd ~/m4-$M4_VER && ./configure --prefix=$GNUTOOLS_ROOT && make -j check && make install); + fi +- if [[ "$LIBTOOL_VER" != "" ]]; then + LIBTOOL_XZ_URL=https://ftp.gnu.org/gnu/libtool/libtool-$LIBTOOL_VER.tar.xz; + wget -O - $LIBTOOL_XZ_URL | tar xf - --xz --directory ~; + (cd ~/libtool-$LIBTOOL_VER && ./configure --prefix=$GNUTOOLS_ROOT && make -j && make install); + fi +- if [[ "$AUTOMAKE_VER" != "" ]]; then + AUTOMAKE_XZ_URL=https://ftp.gnu.org/gnu/automake/automake-$AUTOMAKE_VER.tar.xz; + wget -O - $AUTOMAKE_XZ_URL | tar xf - --xz --directory ~; + (cd ~/automake-$AUTOMAKE_VER && ./configure --prefix=$GNUTOOLS_ROOT && make -j && make install); + fi +- if [[ "$PKG_CONFIG_VER" != "" ]]; then + PKG_CONFIG_GZ_URL=https://pkgconfig.freedesktop.org/releases/pkg-config-$PKG_CONFIG_VER.tar.gz; + wget -O - $PKG_CONFIG_GZ_URL | tar xf - --gz --directory ~; + (cd ~/pkg-config-$PKG_CONFIG_VER && ./configure --with-internal-glib --prefix=$GNUTOOLS_ROOT && make -j && make install); + fi +- if [[ "$MAKEFILE_TARGETS" == *"dist"* ]]; then + autoconf --version; + automake --version; + m4 --version; + libtool --version || true; + pkg-config --version; + fi - if [[ "$MAKEFILE_NAME" == "" ]]; then MAKEFILE_NAME=Makefile; fi - if [[ "$MAKEFILE_TARGETS" == "" ]]; then MAKEFILE_TARGETS="check"; fi -- 2.40.0