Skip to content
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

Add command hooks #98

Merged
merged 2 commits into from
Dec 18, 2020
Merged

Add command hooks #98

merged 2 commits into from
Dec 18, 2020

Conversation

lefessan
Copy link
Member

The following hooks can be used (listed in scripts/before.sh):

  • before-build.sh [PACKAGE] (PACKAGE only provided if
    called from opam for PACKAGE.opam)
  • after-build.sh [PACKAGE]
  • before-sphinx.sh SPHINX_TARGET
  • after-sphinx.sh SPHINX_TARGET
  • before-odoc.sh ODOC_TARGET
  • after-odoc.sh ODOC_TARGET
  • before-test.sh
  • after-test.sh
  • before-install.sh PACKAGE (called from opam install)
  • after-clean.sh
  • after-distclean.sh
  • before-fmt.sh
  • after-fmt.sh
  • before-run.sh CMD ARGS
  • before-publish.sh OPAM_REPO
  • after-publish.sh OPAM_REPO

Other modifications:

  • drom clean --distclean instead of drom clean --opam
  • Keep file permissions from skeletons (especially for scripts)

The following hooks can be used (listed in scripts/before.sh):
* before-build.sh [PACKAGE] (PACKAGE only provided if
   called from opam for PACKAGE.opam)
* after-build.sh  [PACKAGE]
* before-sphinx.sh SPHINX_TARGET
* after-sphinx.sh SPHINX_TARGET
* before-odoc.sh ODOC_TARGET
* after-odoc.sh ODOC_TARGET
* before-test.sh
* after-test.sh
* before-install.sh PACKAGE (called from opam install)
* after-clean.sh
* after-distclean.sh
* before-fmt.sh
* after-fmt.sh
* before-run.sh CMD ARGS
* before-publish.sh OPAM_REPO
* after-publish.sh OPAM_REPO

Other modifications:
* `drom clean --distclean` instead of `drom clean --opam`
* Keep file permissions from skeletons (especially for scripts)
@lefessan lefessan merged commit 4602f54 into OCamlPro:master Dec 18, 2020
@lefessan lefessan deleted the z-2020-12-17-hooks branch December 18, 2020 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant