[gjs: 1/4] CI: print environment debug info



commit d06bcc2fc2abb1c3ab44b61e657c0781bda017c4
Author: Claudio André <claudioandre br gmail com>
Date:   Tue Oct 31 08:56:39 2017 -0200

    CI: print environment debug info

 test/test-ci.sh | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/test/test-ci.sh b/test/test-ci.sh
index 8b3b2b7..a8c6a0f 100755
--- a/test/test-ci.sh
+++ b/test/test-ci.sh
@@ -177,12 +177,20 @@ function do_Get_Files(){
     echo '-- Done --'
 }
 
-function do_Show_Compiler(){
+function do_Show_Info(){
+
+    echo '--------------------------------'
+    echo 'Useful build system information'
+    id; uname -a
+    printenv
+    echo '--------------------------------'
 
     if [[ ! -z $CC ]]; then
-        echo
-        echo '-- Compiler in use --'
+        echo 'Compiler version'
         $CC --version
+        echo '--------------------------------'
+        $CC -dM -E -x c /dev/null
+        echo '--------------------------------'
     fi
 }
 
@@ -199,7 +207,7 @@ if [[ $1 == "BUILD_MOZ" ]]; then
     do_Install_Base_Dependencies
     do_Set_Env
 
-    do_Show_Compiler
+    do_Show_Info
     do_Patch_JHBuild
     do_Build_JHBuild RESET
     do_Build_Mozilla
@@ -213,7 +221,7 @@ elif [[ $1 == "GJS" ]]; then
     do_Install_Dependencies
     do_Set_Env
 
-    do_Show_Compiler
+    do_Show_Info
     do_Patch_JHBuild
     do_Build_JHBuild
     do_Configure_JHBuild


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]