travis tuning

pull/67/head
David Schweikert 11 years ago
parent 42574667d6
commit 71616ec77e

@ -10,12 +10,13 @@ branches:
only: only:
- master - master
install: install:
- sudo apt-get remove -qq autoconf automake autotools-dev libtool
- ci/build-1-autotools.sh - ci/build-1-autotools.sh
- curl -L http://cpanmin.us | perl - --sudo App::cpanminus - curl -L http://cpanmin.us | perl - --sudo App::cpanminus
- cpanm --sudo Test::Command - cpanm --sudo Test::Command
script: script:
- ci/build-2-install.sh - ci/build-2-install.sh
- prove ci/test-*.pl - prove ci/test-*.pl
- make dist
- ci/test-tarball.sh
after_success: after_success:
- ci/deploy-bintray.sh - ci/deploy-bintray.sh

@ -11,13 +11,16 @@ if [ ! -d ci ]; then
exit 1 exit 1
fi fi
# remove standard versions
sudo apt-get remove -qq autoconf automake autotools-dev libtool
# prepare build environment
cd ci cd ci
rm -rf build rm -rf build
mkdir -p build/src mkdir -p build/src
cd build/src cd build/src
### autoconf # autoconf
( (
AUTOCONF_FILE=$(basename $AUTOCONF) AUTOCONF_FILE=$(basename $AUTOCONF)
AUTOCONF_DIR=$(echo $AUTOCONF_FILE | sed -e 's/\.tar.*//') AUTOCONF_DIR=$(echo $AUTOCONF_FILE | sed -e 's/\.tar.*//')
@ -28,8 +31,7 @@ cd $AUTOCONF_DIR
make install make install
) )
### automake # automake
( (
AUTOMAKE_FILE=$(basename $AUTOMAKE) AUTOMAKE_FILE=$(basename $AUTOMAKE)
AUTOMAKE_DIR=$(echo $AUTOMAKE_FILE | sed -e 's/\.tar.*//') AUTOMAKE_DIR=$(echo $AUTOMAKE_FILE | sed -e 's/\.tar.*//')
@ -40,8 +42,7 @@ cd $AUTOMAKE_DIR
make install make install
) )
### libtool # libtool
( (
LIBTOOL_FILE=$(basename $LIBTOOL) LIBTOOL_FILE=$(basename $LIBTOOL)
LIBTOOL_DIR=$(echo $LIBTOOL_FILE | sed -e 's/\.tar.*//') LIBTOOL_DIR=$(echo $LIBTOOL_FILE | sed -e 's/\.tar.*//')

@ -0,0 +1,24 @@
#!/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
Loading…
Cancel
Save