only:
- master
install:
- - sudo apt-get remove -qq autoconf automake autotools-dev libtool
- ci/build-1-autotools.sh
- curl -L http://cpanmin.us | perl - --sudo App::cpanminus
- cpanm --sudo Test::Command
script:
- ci/build-2-install.sh
- prove ci/test-*.pl
+ - make dist
+ - ci/test-tarball.sh
after_success:
- ci/deploy-bintray.sh
exit 1
fi
+# remove standard versions
+sudo apt-get remove -qq autoconf automake autotools-dev libtool
+
+# prepare build environment
cd ci
rm -rf build
mkdir -p build/src
cd build/src
-### autoconf
-
+# autoconf
(
AUTOCONF_FILE=$(basename $AUTOCONF)
AUTOCONF_DIR=$(echo $AUTOCONF_FILE | sed -e 's/\.tar.*//')
make install
)
-### automake
-
+# automake
(
AUTOMAKE_FILE=$(basename $AUTOMAKE)
AUTOMAKE_DIR=$(echo $AUTOMAKE_FILE | sed -e 's/\.tar.*//')
make install
)
-### libtool
-
+# libtool
(
LIBTOOL_FILE=$(basename $LIBTOOL)
LIBTOOL_DIR=$(echo $LIBTOOL_FILE | sed -e 's/\.tar.*//')
--- /dev/null
+#!/bin/bash
+
+# make sure that the .tar.gz file contains everything necessary
+# to build fping
+
+set -e
+set -x
+
+TARFILE=fping-*.tar.gz
+if [ ! -f "$TARFILE" ]; then
+ echo "tar.gz file not found." >&2
+ exit 1
+fi
+
+# unarchive
+TMPDIR=$(mktemp -d --tmpdir=.)
+cd $TMPDIR
+tar xf ../$TARFILE
+DIRNAME=$(ls)
+
+# build
+cd $DIRNAME
+./configure --enable-ipv4 --enable-ipv6
+make