[ANN] opam build & opam test: the opam plugins that simplifies your dev setup

Hi everyone,

I’m pleased to announce the release of opam-build & opam-test 0.2.0 (soon 0.2.4 with all the latest improvements)

These two opam plugins now require your current client to be opam 2.2 (e.g. the latest 2.2.0~beta1).
If you use opam 2.2 you can install them using:

opam update && opam install 'opam-build>=0.2.0' 'opam-test>=0.2.0'

After that you can use them from any switches using:

opam build --help
opam test --help

The highlights of this version cycle are:

  • Vastly improved performance and UI
  • Added a new --global and --local command line argument to signify whether to use a local switch or a global switch
  • Add a new config file storing the user preference and which kind of switch to use by default
  • Lots of fixes and improvements

On a personal note, my main incentive with these changes was to finally use these plugins personally and in particular, while working on some packages for my work on the “OCaml 5.2 release readiness” (see a more general description of this work here), i encountered a couple of packages where the only way to compile them was using opam as they were using custom variables passed to their arguments. opam install was not what i wanted (i don’t want to install it, i just need to see if the local version compiles) but opam build fits the bill perfectly here (I don’t know what build-system it uses, i just want to compile it). The previous version however was using local switches, which i don’t personally use and is not suited for the type of work I’m personally doing, so instead i added the option to use the current global switch.

A demo of the new version (here 0.2.4) can be seen here:
demo

Disclaimer: As with version 0.1.0, these plugins are still experimental, however they should be a lot more polished and usable, hopefully if enough people report issues (big thanks to @gridbugs for the reports on the previous versions) next version should be deemed stable.

Happy hacking,

17 Likes