diff --git a/.travis.yml b/.travis.yml index e58d66742..a9cfb599e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,9 @@ env: # Check build and unit tests # NOTE: testing needs OPAMBUILDTEST=true so that test deps are installed - TO_TEST=tests OPAMBUILDTEST=true OCAML_VERSION=4.02.3 + - TO_TEST=tests OPAMBUILDTEST=true OCAML_VERSION=4.03.0 + - TO_TEST=tests OPAMBUILDTEST=true OCAML_VERSION=4.04.2 + - TO_TEST=tests OPAMBUILDTEST=true OCAML_VERSION=4.05.0 - TO_TEST=tests OPAMBUILDTEST=true OCAML_VERSION=4.06.1 - TO_TEST=tests OPAMBUILDTEST=true OCAML_VERSION=4.07.0 before_install: diff --git a/lib/compat.ml b/lib/compat.ml index 767c09797..3c70201b6 100644 --- a/lib/compat.ml +++ b/lib/compat.ml @@ -99,7 +99,7 @@ end module Env = struct include Env -#if OCAML_MAJOR = 4 && OCAML_MINOR < 3 +#if OCAML_MAJOR = 4 && OCAML_MINOR < 4 (* Can't be overriden *) let without_cmis f x = f x #endif diff --git a/lib/top/mdx_top.ml b/lib/top/mdx_top.ml index 10300627e..539fa3c9f 100644 --- a/lib/top/mdx_top.ml +++ b/lib/top/mdx_top.ml @@ -124,7 +124,7 @@ module Phrase = struct | exception exn -> let exn = match Location.error_of_exn exn with | None -> raise exn -#if OCAML_MAJOR >= 4 && OCAML_MINOR > 2 +#if OCAML_MAJOR >= 4 && OCAML_MINOR > 5 | Some `Already_displayed -> raise exn | Some (`Ok error) -> Location.Error (Lexbuf.shift_location_error startpos error)