-
Create an
opamfile at the root of your project. If you use opam 1.2, you can simply doopam pin add PKG .-- this will open an editor and propose you a template. -
Copy
.travis.ymlat the root of your project. -
Enable Travis runs on
https://travis-ci.org/profile/<YOURGITHUBID>(sign in with your Github account and click on+on top of the left pane). -
(optional) If you want to support multiple OCaml versions, update
.travis.ymlto add some of the following lines (by default, the file contains only the line withOCAML_VERSION=latest):
- OCAML_VERSION=3.12
- OCAML_VERSION=4.00
- OCAML_VERSION=4.01
- OCAML_VERSION=4.02
- OCAML_VERSION=latest
- (optional) Set
PACKAGE=<name of your package>. By default, the script will usemy-packageas package name, which might not be what you want if your tests consist of installing reverse dependencies.