Browse Source

ci: Add status option to "latest-builds".

* guix/ci.scm (latest-builds): Add "status" option.
wip-haskell-updates-2
Mathieu Othacehe 1 year ago
parent
commit
9e989d9e36
No known key found for this signature in database GPG Key ID: 8354763531769CA6
  1. 9
      guix/ci.scm

9
guix/ci.scm

@ -109,10 +109,7 @@
(map json->build (vector->list queue))))
(define* (latest-builds url #:optional (limit %query-limit)
#:key
evaluation
system
job)
#:key evaluation system job status)
"Return the latest builds performed by the CI server at URL. If EVALUATION
is an integer, restrict to builds of EVALUATION. If SYSTEM is true (a system
string such as \"x86_64-linux\"), restrict to builds for SYSTEM."
@ -126,7 +123,9 @@ string such as \"x86_64-linux\"), restrict to builds for SYSTEM."
(option "evaluation" evaluation
number->string)
(option "system" system)
(option "job" job)))))
(option "job" job)
(option "status" status
number->string)))))
;; Note: Hydra does not provide a "derivation" field for entries in
;; 'latestbuilds', but Cuirass does.
(map json->build (vector->list latest))))

Loading…
Cancel
Save