diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..ce889f30 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,34 @@ +language: c +env: + - OCAML_VERSION=4.01.0 + - OCAML_VERSION=4.02.3 + - OCAML_VERSION=4.04.2 + - OCAML_VERSION=4.05.0 + - OCAML_VERSION=4.05.0+flambda + - OCAML_VERSION=4.06.0 +addons: + apt: + sources: + - avsm + packages: + - opam +# Caching may take a lot of space with so many ocaml versions +#cache: +# directories: +# - $HOME/.opam +before_install: + # Some opam boilerplate + - export OPAMYES=1 + - export OPAMVERBOSE=1 + - opam init + - opam switch ${OCAML_VERSION} + - eval `opam config env` +install: + # Install dependencies + - opam pin add --no-action containers . + - opam install oasis + - opam install --deps-only containers +script: + - make build + - ./configure --enable-unix --enable-thread --enable-tests + - make test diff --git a/README.adoc b/README.adoc index 35751dd0..8bddf08e 100644 --- a/README.adoc +++ b/README.adoc @@ -14,7 +14,7 @@ map/fold_right/append, and additional functions on lists). Alternatively, `open Containers` will bring enhanced versions of the standard modules into scope. -image::https://ci.cedeela.fr/buildStatus/icon?job=containers[alt="Build Status", link="http://ci.cedeela.fr/job/containers/"] +image::https://travis-ci.org/c-cube/ocaml-containers.svg?branch=master[alt="Build Status", link="https://travis-ci.org/c-cube/ocaml-containers"] toc::[]