return 1 || exit 1
fi
-# some config settings
-MAKE="make -j4"
+## some config settings
+# travis docs say we get 1.5 CPUs
+MAKE="make -j2"
DUMP_CONFIG_LOG="short"
-# We could test (exotic) out-of-tree build dirs using relative or abs paths.
-# After sourcing this script we are living in build dir. Tasks for source dir
-# have to use $SOURCE_DIR.
-SOURCE_DIR="."
-BUILD_DIR="."
-CONFIGURE="$SOURCE_DIR/configure"
-
-mkdir -p "$BUILD_DIR"
-cd "$BUILD_DIR" || return 1 || exit 1
-
-function configure_travis
+function xconfigure
{
- "$CONFIGURE" "$@"
+ ./configure "$@"
err=$?
if [ "$DUMP_CONFIG_LOG" = "short" ]; then
grep -B1 -A10000 "^## Output variables" config.log | grep -v "_FALSE="
{
local opts="$MAKE_CHECK_OPTS"
- configure_travis \
+ xconfigure \
--disable-use-tty-group \
--with-python \
--enable-all-programs \
{
local opts="$MAKE_CHECK_OPTS --parallel=1"
- configure_travis \
+ xconfigure \
--with-python \
--enable-all-programs \
|| return
function check_dist
{
- configure_travis \
+ xconfigure \
|| return
$MAKE distcheck || return
}
function travis_before_script
{
- pushd "$SOURCE_DIR" || return
set -o xtrace
./autogen.sh
ret=$?
set +o xtrace
- popd
return $ret
}
local tmp
# find diff dir from check as well as from distcheck
- diff_dir=$(find -type d -a -name "diff" | grep "tests/diff" | head -n 1)
+ diff_dir=$(find . -type d -name "diff" | grep "tests/diff" | head -n 1)
if [ -d "$diff_dir" ]; then
tmp=$(find "$diff_dir" -type f | sort)
echo -en "dump test diffs:\n${tmp}\n"
- echo "$tmp" | xargs -r cat
+ echo "$tmp" | xargs cat
fi
}