diff options
author | Ruediger Meier | 2016-02-15 18:15:58 +0100 |
---|---|---|
committer | Ruediger Meier | 2016-02-18 12:53:03 +0100 |
commit | 1091e83e8469c2bb2bc75cb908b6ae9a22919025 (patch) | |
tree | 61c3b5851702c7b070d9c20cf16ffe75a256a85a /.travis-functions.sh | |
parent | unshare: fix busyloop and reduce racing probability (diff) | |
download | kernel-qcow2-util-linux-1091e83e8469c2bb2bc75cb908b6ae9a22919025.tar.gz kernel-qcow2-util-linux-1091e83e8469c2bb2bc75cb908b6ae9a22919025.tar.xz kernel-qcow2-util-linux-1091e83e8469c2bb2bc75cb908b6ae9a22919025.zip |
travis: minor cleanup
- print env for debugging
- remove unused builddir stuff
- avoid non-portable find/xargs usage
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to '.travis-functions.sh')
-rwxr-xr-x | .travis-functions.sh | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/.travis-functions.sh b/.travis-functions.sh index bef459756..3315a9159 100755 --- a/.travis-functions.sh +++ b/.travis-functions.sh @@ -11,23 +11,14 @@ if [ ! -f "configure.ac" ]; then 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=" @@ -41,7 +32,7 @@ function check_nonroot { local opts="$MAKE_CHECK_OPTS" - configure_travis \ + xconfigure \ --disable-use-tty-group \ --with-python \ --enable-all-programs \ @@ -56,7 +47,7 @@ function check_root { local opts="$MAKE_CHECK_OPTS --parallel=1" - configure_travis \ + xconfigure \ --with-python \ --enable-all-programs \ || return @@ -68,7 +59,7 @@ function check_root function check_dist { - configure_travis \ + xconfigure \ || return $MAKE distcheck || return } @@ -98,14 +89,12 @@ function travis_install_script function travis_before_script { - pushd "$SOURCE_DIR" || return set -o xtrace ./autogen.sh ret=$? set +o xtrace - popd return $ret } @@ -142,10 +131,10 @@ function travis_after_script 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 } |