summaryrefslogtreecommitdiff
path: root/gnu/ci.scm
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2021-03-14 18:19:16 +0100
committerMathieu Othacehe <othacehe@gnu.org>2021-03-14 18:19:41 +0100
commit61a1165340a8bcc45550259edca25275d899fe09 (patch)
treec1048dc0fe96c382de943df81ff129800dca8a2d /gnu/ci.scm
parent7327295462fccae4ee3e9bf74962c82d3445fec8 (diff)
ci: Add channel subset support.
* gnu/ci.scm (cuirass-jobs): Add channel subset support.
Diffstat (limited to 'gnu/ci.scm')
-rw-r--r--gnu/ci.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/gnu/ci.scm b/gnu/ci.scm
index 6edcdd0e19d..664cabfec65 100644
--- a/gnu/ci.scm
+++ b/gnu/ci.scm
@@ -23,6 +23,7 @@
23(define-module (gnu ci) 23(define-module (gnu ci)
24 #:use-module (guix channels) 24 #:use-module (guix channels)
25 #:use-module (guix config) 25 #:use-module (guix config)
26 #:use-module (guix describe)
26 #:use-module (guix store) 27 #:use-module (guix store)
27 #:use-module (guix grafts) 28 #:use-module (guix grafts)
28 #:use-module (guix profiles) 29 #:use-module (guix profiles)
@@ -521,6 +522,17 @@ valid."
521 (let ((hello (specification->package "hello"))) 522 (let ((hello (specification->package "hello")))
522 (list (package-job store (job-name hello) 523 (list (package-job store (job-name hello)
523 hello system)))) 524 hello system))))
525 (('channels . channels)
526 ;; Build only the packages from CHANNELS.
527 (let ((all (all-packages)))
528 (filter-map
529 (lambda (package)
530 (match (package-channels package)
531 ((channel . _)
532 (and (member (channel-name channel) channels)
533 (package->job store package system)))
534 (else #f)))
535 all)))
524 (('packages . rest) 536 (('packages . rest)
525 ;; Build selected list of packages only. 537 ;; Build selected list of packages only.
526 (let ((packages (map specification->package rest))) 538 (let ((packages (map specification->package rest)))