It is currently very hard to simply test packages against beta/rc or other ocaml-variants (flambda, ...) with the travis-docker script. This PR fixes this issue by introducing a new environment variable OCAML_BETA which when equal to enable adds the ocaml-beta-repository to the repositories used by opam to create new switches.
It is currently very hard to simply test packages against beta/rc or other ocaml-variants (flambda, ...) with the travis-docker script. This PR fixes this issue by introducing a new environment variable
OCAML_BETA
which when equal toenable
adds the ocaml-beta-repository to the repositories used by opam to create new switches.This change was tested successfully in
mdx
: https://travis-ci.org/realworldocaml/mdx/builds/635266545 (PR: https://github.com/realworldocaml/mdx/pull/204)