ocaml / ocaml-ci-scripts

Skeletons for CI scripts
ISC License
101 stars 57 forks source link

Travis-docker: Add a config variable to enable ocaml-beta #319

Closed kit-ty-kate closed 4 years ago

kit-ty-kate commented 4 years ago

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.

This change was tested successfully in mdx: https://travis-ci.org/realworldocaml/mdx/builds/635266545 (PR: https://github.com/realworldocaml/mdx/pull/204)

kit-ty-kate commented 4 years ago

Tested successfully in https://travis-ci.org/realworldocaml/mdx/builds/636503221. Thanks a lot for your comments!