summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-05-05 21:53:14 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-05-15 23:48:52 +0300
commit64bf277696b77c79cc57bf17eb7438aa66091b6f (patch)
tree521b93c08bf78f8249989e1df55985bc64e5ace2
parent36eaf3fe49dcf42d686a51d94e7689d1949269cf (diff)
downloadlibatomic_ops-64bf277696b77c79cc57bf17eb7438aa66091b6f.tar.gz
Travis CI: Test also 'make distcheck'
(Cherry-pick commits 73162f6, 0ef0fe3 from 'master' branch.) GNU autotools version: * autoconf 2.69 * automake 1.15 * m4 1.4.18 * libtool 2.4.6
-rw-r--r--.travis.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index ba481a9..1f4a248 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -8,6 +8,13 @@ matrix:
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
- os: linux
@@ -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: