3
0
Fork 0
forked from mirrors/nixpkgs

nixops: add checkPhase with a smoke test

This can detect (python) import errors introduced by dependency updates.
This commit is contained in:
Herwig Hochleitner 2019-01-10 17:44:49 +01:00
parent 77ec7d75a9
commit 0e5c70eb76

View file

@ -1,4 +1,4 @@
{ lib, python2Packages, libxslt, docbook_xsl_ns, openssh
{ lib, python2Packages, libxslt, docbook_xsl_ns, openssh, cacert
# version args
, src, version
}:
@ -29,7 +29,13 @@ python2Packages.buildPythonApplication {
typing
];
doCheck = false;
checkPhase =
# Ensure, that there are no (python) import errors
''
SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt \
HOME=$(pwd) \
$out/bin/nixops --version
'';
postInstall = ''
make -C doc/manual install nixops.1 docbookxsl=${docbook_xsl_ns}/xml/xsl/docbook \