travis tuning

pull/67/head
David Schweikert 11 years ago
parent 3eccad8ee1
commit a2ac03c210

@ -6,9 +6,10 @@ compiler:
branches:
only:
- master
before_install:
install:
- sudo apt-get remove -qq autoconf automake autotools-dev libtool
- ci/build-1-autotools.sh
- cpanm Test::Command
script:
- ci/build-2-install.sh
- ci/test-1.sh
- prove ci/test-*.pl

@ -0,0 +1,9 @@
#!/usr/bin/perl -w
use Test::Command tests => 3;
my $fping_bin = '/opt/fping/sbin/fping';
my $cmd1 = Test::Command->new(cmd => "sudo $fping_bin 127.0.0.1");
$cmd1->exit_is_num(0);
$cmd1->stdout_is_eq("127.0.0.1 is alive\n");
$cmd1->stderr_is_eq("");

@ -1,9 +0,0 @@
#!/bin/sh
if [ ! -d ci ]; then
echo "you must run this in the root fping directory" >&2
exit 1
fi
sudo /opt/fping/sbin/fping 127.0.0.1
Loading…
Cancel
Save