diff options
author | Claudio André <claudioandre.br@gmail.com> | 2017-04-26 17:46:42 -0300 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2017-04-27 22:49:06 -0700 |
commit | 2ef72a1fddd349c1eb2e67e315c14b6c791615c1 (patch) | |
tree | e9d7136b6bca0f57ea641e9db7cc769db007e73f | |
parent | 75e72441221a0416cfa6131a471dcbeac8394e22 (diff) | |
download | gjs-2ef72a1fddd349c1eb2e67e315c14b6c791615c1.tar.gz |
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
-rwxr-xr-x | 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 7bc37b2e..5bf17377 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 --' } |