1
0
Fork 0

build documentation on Hydra

This commit is contained in:
Sebastien Bourdeauducq 2019-02-19 15:11:50 +08:00
parent 5fdb07259b
commit f21eb0c6d6
1 changed files with 13 additions and 0 deletions

View File

@ -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]))