-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
packages with a validate target should have a run-test
#2155
Comments
I agree that it's nice for packages to provide a |
Do you know of a way we can pass the validate target through opam? The coq repo bench for instance tests opam packages, so it would be nice to be able to call the validate job via opam somehow. Jason's suggestion would work, but I think a lot of packages have other things that would count as tests so I wouldn't want that to be enforced in general. |
With the usual assumptions about opam, the only way to run a command for a project through opam is when the opam package provides a way to run it, e.g., in the
But this assumes they are using It may be better to introduce some kind of flag that can conditionally run validation:
This would be far less intrusive and maintainable. |
Does the CI here run the testing step / use --with-test? How do custom opam flags work? |
I'm not sure opam can currently define custom flags on the fly, but you could always do a package similar to |
Apparently opam has
--with-test
. The doc on making opam packages should suggest filling this field, and the packages which have validate targets available should get this field.The text was updated successfully, but these errors were encountered: