OSDN Git Service

travis-ci: handle Git for Windows CI status "failed" explicitly
authorLars Schneider <larsxschneider@gmail.com>
Sat, 29 Apr 2017 18:59:58 +0000 (20:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 May 2017 05:50:40 +0000 (14:50 +0900)
Git for Windows CI returns "completed: failed" if a build or test
failure happened. This case was processed as "Unhandled status".
Handle the case explicitly.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/run-windows-build.sh

index 4e3a50b..c72a2bd 100755 (executable)
@@ -61,7 +61,8 @@ do
        case "$STATUS" in
        inProgress|postponed|notStarted) sleep 10               ;; # continue
                 "completed: succeeded") RESULT="success"; break;; # success
-       *) echo "Unhandled status: $STATUS";               break;; # failure
+                   "completed: failed")                   break;; # failure
+       *) echo "Unhandled status: $STATUS";               break;; # unknown
        esac
 done