[gjs/gnome-3-24] CI: modernize Travis testing script



commit dd83e0c9a46bfe83207d65f423f45da39fac2341
Author: Claudio André <claudioandre br gmail com>
Date:   Wed Apr 26 17:46:42 2017 -0300

    CI: modernize Travis testing script
    
    It is possible to use a static analysis tool to improve all scripts robustness and safety.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781806

 test/travis-ci.sh |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/test/travis-ci.sh b/test/travis-ci.sh
index 7bc37b2..5bf1737 100755
--- a/test/travis-ci.sh
+++ b/test/travis-ci.sh
@@ -161,22 +161,22 @@ function do_Build_Mozilla(){
 function do_Build_Package_Dependencies(){
     echo
     echo "-- Building Dependencies for $1 --"
-    jhbuild list $1
+    jhbuild list "$1"
 
     # Build package dependencies
     if [[ $BASE == "ubuntu" ]]; then
-        jhbuild sysdeps --install $1
+        jhbuild sysdeps --install "$1"
     fi
-    jhbuild build $(jhbuild list $1 | sed '$d')
+    jhbuild build $(jhbuild list "$1" | sed '$d')
 }
 
 function do_Save_Files(){
     echo
     echo '-- Saving build files --'
-    mkdir -p /cwd/SAVED/$OS
+    mkdir -p "/cwd/SAVED/$OS"
 
-    cp -r ~/jhbuild /cwd/SAVED/$OS/jhbuild
-    cp -r ~/.local  /cwd/SAVED/$OS/.local
+    cp -r ~/jhbuild "/cwd/SAVED/$OS/jhbuild"
+    cp -r ~/.local  "/cwd/SAVED/$OS/.local"
     echo '-- Done --'
 }
 
@@ -184,8 +184,8 @@ function do_Get_Files(){
     echo
     echo '-- Restoring build files --'
 
-    cp -r /cwd/SAVED/$OS/jhbuild ~/jhbuild
-    cp -r /cwd/SAVED/$OS/.local  ~/.local
+    cp -r "/cwd/SAVED/$OS/jhbuild" ~/jhbuild
+    cp -r "/cwd/SAVED/$OS/.local"  ~/.local
     echo '-- Done --'
 }
 


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