Skip to content

Commit

Permalink
adga: Add test for all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
turion committed Aug 3, 2021
1 parent c84b60b commit 8c0be16
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions doc/languages-frameworks/agda.section.md
Expand Up @@ -235,6 +235,13 @@ In a pull request updating e.g. the standard library, you should write the follo
This will build all reverse dependencies of the standard library,
for example `agdaPackages.agda-categories`, or `agdaPackages.generic`.

In some cases it is useful to build _all_ Agda packages.
This can be done with the following Github comment:

```
@ofborg build agda.passthru.tests.allPackages
```

Sometimes, the builds of the reverse dependencies fail because they have not yet been updated and released.
You should drop the maintainers a quick issue notifying them of the breakage,
citing the build error (which you can get from the ofborg logs).
Expand Down
5 changes: 4 additions & 1 deletion pkgs/top-level/agda-packages.nix
Expand Up @@ -13,7 +13,10 @@ let

lib = lib.extend (final: prev: import ../build-support/agda/lib.nix { lib = prev; });

agda = withPackages [] // { inherit withPackages; };
agda = withPackages [] // {
inherit withPackages;
passthru.tests.allPackages = withPackages (lib.filter (pkg: self.lib.isUnbrokenAgdaPackage pkg) (lib.attrValues self));
};

standard-library = callPackage ../development/libraries/agda/standard-library {
inherit (pkgs.haskellPackages) ghcWithPackages;
Expand Down

0 comments on commit 8c0be16

Please sign in to comment.