test: add test nixosSearch
This checks that creating module docs for search.nixos.org succceeds. Errors can happen when complex `default` values can't be evaluated or on malformed Docbook XML in descriptions.
This commit is contained in:
parent
77d8c00c53
commit
eaf98f92db
4 changed files with 71 additions and 0 deletions
|
|
@ -26,11 +26,16 @@ if [[ ${1:-} != -f ]] && ! git diff --quiet ../flake.{nix,lock}; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "Updating flake 'nixos-search'"
|
||||
nix flake update ../test/nixos-search
|
||||
echo
|
||||
|
||||
versions=$(nix eval --json -f update-flake.nix versions)
|
||||
|
||||
## Uncomment the following to generate a version change message for testing
|
||||
# versions=$(echo "$versions" | sed 's|1|0|g')
|
||||
|
||||
echo "Updating main flake"
|
||||
nix flake update ..
|
||||
|
||||
echo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue