add travis

This commit is contained in:
Simon Cruanes 2017-12-24 17:01:01 +01:00
parent 011e8ecb76
commit dbf977edaa
2 changed files with 37 additions and 0 deletions

35
.travis.yml Normal file
View file

@ -0,0 +1,35 @@
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 sequence .
- opam install oasis
- opam install --deps-only sequence
script:
- make build
- opam install qcheck qtest
- ./configure --enable-tests
- make test

View file

@ -13,6 +13,8 @@ way of iterating on a finite number of values, only allocating (most of the time
one intermediate closure to do so. For instance, iterating on keys, or values,
of a `Hashtbl.t`, without creating a list.
image::https://travis-ci.org/c-cube/sequence.svg?branch=master[alt="Build Status", link="https://travis-ci.org/c-cube/sequence"]
toc::[]
== Documentation