mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
ci: Add log and outputs keys.
Add 'log and 'outputs properties to hydra objects. This way Cuirass won't have to go through every derivation to add those properties. * gnu/ci.scm (package->alist, image-jobs, system-test-jobs, tarball-jobs): Add 'log and 'outputs properties. * build-aux/hydra/guix-modular.scm (build-job): Ditto.
This commit is contained in:
parent
f88fea0eaa
commit
c5cf45e906
2 changed files with 30 additions and 0 deletions
|
@ -48,6 +48,12 @@ (define build
|
||||||
#:pull-version 1
|
#:pull-version 1
|
||||||
#:guile-version "2.2"))))
|
#:guile-version "2.2"))))
|
||||||
`((derivation . ,(derivation-file-name drv)) ;the latest 2.2.x
|
`((derivation . ,(derivation-file-name drv)) ;the latest 2.2.x
|
||||||
|
(log . ,(log-file store (derivation-file-name drv)))
|
||||||
|
(outputs . ,(filter-map (lambda (res)
|
||||||
|
(match res
|
||||||
|
((name . path)
|
||||||
|
`(,name . ,path))))
|
||||||
|
(derivation->output-paths drv)))
|
||||||
(nix-name . ,(derivation-name drv))
|
(nix-name . ,(derivation-name drv))
|
||||||
(system . ,(derivation-system drv))
|
(system . ,(derivation-system drv))
|
||||||
(description . "Modular Guix")
|
(description . "Modular Guix")
|
||||||
|
|
24
gnu/ci.scm
24
gnu/ci.scm
|
@ -78,6 +78,12 @@ (define* (package->alist store package system
|
||||||
(let ((drv (package-derivation store package system
|
(let ((drv (package-derivation store package system
|
||||||
#:graft? #f)))
|
#:graft? #f)))
|
||||||
`((derivation . ,(derivation-file-name drv))
|
`((derivation . ,(derivation-file-name drv))
|
||||||
|
(log . ,(log-file store (derivation-file-name drv)))
|
||||||
|
(outputs . ,(filter-map (lambda (res)
|
||||||
|
(match res
|
||||||
|
((name . path)
|
||||||
|
`(,name . ,path))))
|
||||||
|
(derivation->output-paths drv)))
|
||||||
(nix-name . ,(derivation-name drv))
|
(nix-name . ,(derivation-name drv))
|
||||||
(system . ,(derivation-system drv))
|
(system . ,(derivation-system drv))
|
||||||
(description . ,(package-synopsis package))
|
(description . ,(package-synopsis package))
|
||||||
|
@ -203,6 +209,12 @@ (define (image-jobs store system)
|
||||||
"Return a list of jobs that build images for SYSTEM."
|
"Return a list of jobs that build images for SYSTEM."
|
||||||
(define (->alist drv)
|
(define (->alist drv)
|
||||||
`((derivation . ,(derivation-file-name drv))
|
`((derivation . ,(derivation-file-name drv))
|
||||||
|
(log . ,(log-file store (derivation-file-name drv)))
|
||||||
|
(outputs . ,(filter-map (lambda (res)
|
||||||
|
(match res
|
||||||
|
((name . path)
|
||||||
|
`(,name . ,path))))
|
||||||
|
(derivation->output-paths drv)))
|
||||||
(nix-name . ,(derivation-name drv))
|
(nix-name . ,(derivation-name drv))
|
||||||
(system . ,(derivation-system drv))
|
(system . ,(derivation-system drv))
|
||||||
(description . "Stand-alone image of the GNU system")
|
(description . "Stand-alone image of the GNU system")
|
||||||
|
@ -308,6 +320,12 @@ (define drv
|
||||||
(system-test-value test))))
|
(system-test-value test))))
|
||||||
|
|
||||||
`((derivation . ,(derivation-file-name drv))
|
`((derivation . ,(derivation-file-name drv))
|
||||||
|
(log . ,(log-file store (derivation-file-name drv)))
|
||||||
|
(outputs . ,(filter-map (lambda (res)
|
||||||
|
(match res
|
||||||
|
((name . path)
|
||||||
|
`(,name . ,path))))
|
||||||
|
(derivation->output-paths drv)))
|
||||||
(nix-name . ,(derivation-name drv))
|
(nix-name . ,(derivation-name drv))
|
||||||
(system . ,(derivation-system drv))
|
(system . ,(derivation-system drv))
|
||||||
(description . ,(format #f "Guix '~a' system test"
|
(description . ,(format #f "Guix '~a' system test"
|
||||||
|
@ -339,6 +357,12 @@ (define (tarball-jobs store system)
|
||||||
"Return Hydra jobs to build the self-contained Guix binary tarball."
|
"Return Hydra jobs to build the self-contained Guix binary tarball."
|
||||||
(define (->alist drv)
|
(define (->alist drv)
|
||||||
`((derivation . ,(derivation-file-name drv))
|
`((derivation . ,(derivation-file-name drv))
|
||||||
|
(log . ,(log-file store (derivation-file-name drv)))
|
||||||
|
(outputs . ,(filter-map (lambda (res)
|
||||||
|
(match res
|
||||||
|
((name . path)
|
||||||
|
`(,name . ,path))))
|
||||||
|
(derivation->output-paths drv)))
|
||||||
(nix-name . ,(derivation-name drv))
|
(nix-name . ,(derivation-name drv))
|
||||||
(system . ,(derivation-system drv))
|
(system . ,(derivation-system drv))
|
||||||
(description . "Stand-alone binary Guix tarball")
|
(description . "Stand-alone binary Guix tarball")
|
||||||
|
|
Loading…
Reference in a new issue