]> granicus.if.org Git - libatomic_ops/commitdiff
Travis CI: Test also 'make distcheck'
authorIvan Maidanski <ivmai@mail.ru>
Fri, 5 May 2017 18:53:14 +0000 (21:53 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 15 May 2017 20:48:52 +0000 (23:48 +0300)
(Cherry-pick commits 73162f60ef0fe3 from 'master' branch.)

GNU autotools version:
* autoconf 2.69
* automake 1.15
* m4 1.4.18
* libtool 2.4.6

.travis.yml

index ba481a9e1259d9951680befa9f3af1cb160098fb..1f4a2483a19ff33f7a221603cd1c516dd0618fe8 100644 (file)
@@ -7,6 +7,13 @@ matrix:
   - os: linux
     compiler: gcc
   - os: osx
+  - os: linux
+    dist: trusty
+    env:
+    - MAKEFILE_TARGET=distcheck
+    - AUTOMAKE_VER=1.15
+    - M4_VER=1.4.18
+    - LIBTOOL_VER=2.4.6
   - os: linux
     env:
     - MAKEFILE_TARGET=dist
@@ -80,6 +87,31 @@ matrix:
     - CONF_OPTIONS="--enable-assertions"
 
 before_install:
+- if [[ "$AUTOMAKE_VER" != "" || "$LIBTOOL_VER" != "" || "$M4_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 [[ "$MAKEFILE_TARGET" == "dist"* ]]; then
+    autoconf --version;
+    automake --version;
+    m4 --version;
+    libtool --version || true;
+  fi
 - if [[ "$MAKEFILE_TARGET" == "" ]]; then MAKEFILE_TARGET=check; fi
 
 install: