build documentation on Hydra
This commit is contained in:
parent
5fdb07259b
commit
f21eb0c6d6
13
main.nix
13
main.nix
|
@ -18,6 +18,7 @@ let
|
|||
echo \"5e.`cut -c1-8 <<< $REV`\" > $out/pkgs/artiq-version.nix
|
||||
'';
|
||||
artiqpkgs = import "${generatedNix}/default.nix" { inherit pkgs; };
|
||||
python3pkgs = pkgs.callPackage "${generatedNix}/pkgs/python3Packages.nix" {};
|
||||
jobs = builtins.mapAttrs (key: value: pkgs.lib.hydraJob value) artiqpkgs;
|
||||
in
|
||||
jobs // {
|
||||
|
@ -27,6 +28,18 @@ in
|
|||
src = generatedNix;
|
||||
constituents = builtins.attrValues jobs;
|
||||
};
|
||||
docs = pkgs.runCommand "docs"
|
||||
{
|
||||
buildInputs = [
|
||||
(pkgs.python3.withPackages(ps: [python3pkgs.sphinx-argparse python3pkgs.sphinxcontrib-wavedrom ps.sphinx_rtd_theme ps.sphinx]))
|
||||
];
|
||||
}
|
||||
''
|
||||
mkdir $out
|
||||
HOME=`mktemp -d` sphinx-build ${artiqSrc}/doc/manual $out/html
|
||||
mkdir $out/nix-support
|
||||
echo doc manual $out/html >> $out/nix-support/hydra-build-products
|
||||
'';
|
||||
extended-tests = pkgs.runCommand "extended-tests" {
|
||||
propagatedBuildInputs = [
|
||||
(pkgs.python3.withPackages(ps: [artiqpkgs.artiq artiqpkgs.artiq-board-kc705-nist_clock]))
|
||||
|
|
Loading…
Reference in New Issue