From: Ruediger Meier <sweet_f_a@gmx.de>
To: util-linux@vger.kernel.org
Subject: [PATCH 01/15] travis: minor cleanup
Date: Thu, 18 Feb 2016 14:12:41 +0100 [thread overview]
Message-ID: <1455801169-10470-2-git-send-email-sweet_f_a@gmx.de> (raw)
In-Reply-To: <1455801169-10470-1-git-send-email-sweet_f_a@gmx.de>
From: Ruediger Meier <ruediger.meier@ga-group.nl>
- print env for debugging
- remove unused builddir stuff
- avoid non-portable find/xargs usage
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
---
.travis-functions.sh | 31 ++++++++++---------------------
.travis.yml | 2 ++
2 files changed, 12 insertions(+), 21 deletions(-)
diff --git a/.travis-functions.sh b/.travis-functions.sh
index bef4597..3315a91 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
}
diff --git a/.travis.yml b/.travis.yml
index 85a753d..e27adc4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,6 +19,8 @@ branches:
- /^travis.*/
before_install:
+ # print some host info
+ - env | grep -v "encrypted" | LC_ALL=C sort
- $CC --version
- which $CC
# workaround clang not system wide, fail on sudo make install
--
1.8.4.5
next prev parent reply other threads:[~2016-02-18 13:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-18 13:12 [PATCH 00/15] portability fixes in the mix (OSX) Ruediger Meier
2016-02-18 13:12 ` Ruediger Meier [this message]
2016-02-18 13:12 ` [PATCH 02/15] build-sys: portable usage of find command Ruediger Meier
2016-02-18 13:12 ` [PATCH 03/15] build-sys: check linker support for version scripts Ruediger Meier
2016-02-18 13:12 ` [PATCH 04/15] build-sys: fix [g]libtoolize version for OSX Ruediger Meier
2016-02-18 13:12 ` [PATCH 05/15] tests: fix ts_option helpers Ruediger Meier
2016-02-18 13:12 ` [PATCH 06/15] lib: rename strmode() and setmode() Ruediger Meier
2016-02-18 13:12 ` [PATCH 07/15] include: provide MAP_ANONYMOUS on OSX Ruediger Meier
2016-02-18 13:21 ` Karel Zak
2016-02-18 14:10 ` Ruediger Meier
2016-02-18 14:28 ` Karel Zak
2016-02-18 15:51 ` [PATCH v2 " Ruediger Meier
2016-02-18 13:12 ` [PATCH 08/15] lib: define LOGIN_NAME_MAX fallback Ruediger Meier
2016-02-18 13:12 ` [PATCH 09/15] include: check for sys/sysmacros.h Ruediger Meier
2016-02-18 13:22 ` [PATCH 10/15] include: remove unused mntent.h Ruediger Meier
2016-02-18 13:22 ` [PATCH 11/15] lsns: use xcalloc() Ruediger Meier
2016-02-18 13:22 ` [PATCH 12/15] lib: remove unused variable Ruediger Meier
2016-02-18 13:23 ` [PATCH 13/15] lib: fix ismounted includes for FreeBSD Ruediger Meier
2016-02-18 13:23 ` [PATCH 14/15] libblkid: don't include endian.h Ruediger Meier
2016-02-18 13:23 ` [PATCH 15/15] include: fix sys/sysinfo.h Ruediger Meier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455801169-10470-2-git-send-email-sweet_f_a@gmx.de \
--to=sweet_f_a@gmx.de \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox