File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -513,9 +513,20 @@ func process() error {
513
513
return fmt .Errorf ("unable to read response body from coveralls: %s" , err )
514
514
}
515
515
516
- if res .StatusCode >= http .StatusInternalServerError && * shallow {
517
- fmt .Println ("coveralls server failed internally" )
518
- return nil
516
+ if * shallow {
517
+ if res .StatusCode >= http .StatusInternalServerError {
518
+ fmt .Println ("coveralls server failed internally" )
519
+ return nil
520
+ }
521
+
522
+ // XXX: It looks that Coveralls is under maintenance.
523
+ // Coveralls serves the maintenance page as a static HTML hosting,
524
+ // and the maintenance page doesn't accept POST method.
525
+ // See https://github.com/mattn/goveralls/issues/204
526
+ if res .StatusCode == http .StatusMethodNotAllowed {
527
+ fmt .Println ("it looks that Coveralls is under maintenance. visit https://status.coveralls.io/" )
528
+ return nil
529
+ }
519
530
}
520
531
521
532
if res .StatusCode != 200 {
You can’t perform that action at this time.
0 commit comments