[gjs] CI: print the log in case of a failing build
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] CI: print the log in case of a failing build
- Date: Tue, 14 Feb 2017 22:47:56 +0000 (UTC)
commit d76f7d0d7ff2dcdc2cadc360a2da2995209080f1
Author: Claudio André <claudioandre br gmail com>
Date: Tue Feb 14 07:04:38 2017 -0200
CI: print the log in case of a failing build
https://bugzilla.gnome.org/show_bug.cgi?id=776549
.travis.yml | 7 +++++++
test/travis-ci.sh | 4 ++++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/.travis.yml b/.travis.yml
index 122c55c..4ac2794 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -36,3 +36,10 @@ before_script:
script:
- docker run -v $(pwd):/cwd -v $(pwd)/gjs/test/travis-ci.sh:/travis-ci.sh -e BASE=$BASE -e OS=$IMAGE -e
CC=$CCO local/$NAME bash -e -c "/travis-ci.sh GJS"
+after_failure:
+ - echo '-- FAILURE --'
+ - 'if [[ -f $(pwd)/.cache/jhbuild/build/gjs/test-suite.log ]]; then
+ cat $(pwd)/.cache/jhbuild/build/gjs/test-suite.log;
+ else
+ echo "-- NO LOG FILE FOUND --";
+ fi'
diff --git a/test/travis-ci.sh b/test/travis-ci.sh
index c71da93..0cfc580 100755
--- a/test/travis-ci.sh
+++ b/test/travis-ci.sh
@@ -54,6 +54,10 @@ function do_Set_Env(){
echo
echo '-- Set Environment --'
+ #Save cache on host
+ mkdir -p /cwd/.cache
+ export XDG_CACHE_HOME=/cwd/.cache
+
if [[ -z $DISPLAY ]]; then
export DISPLAY=":0"
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]