Added travis CI

This commit is contained in:
Guillaume Bury 2016-07-23 13:23:36 +02:00
parent 3e30a77569
commit 54ba6bc745
2 changed files with 23 additions and 0 deletions

16
.travis-ci.sh Normal file
View file

@ -0,0 +1,16 @@
# Edit this for your own project dependencies
OPAM_DEPENDS="ocamlfind ocamlbuild"
echo "yes" | sudo add-apt-repository ppa:avsm/ocaml42+opam12
sudo apt-get update -qq
sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam
export OPAMYES=1
export OPAMVERBOSE=1
opam init
opam switch OCAML_VERSION
eval `opam config env`
opam install ${OPAM_DEPENDS}
eval `opam config env`
make lib
make bin
make test

7
.travis.yml Normal file
View file

@ -0,0 +1,7 @@
language: c
script: bash -ex .travis-ci.sh
env:
- OCAML_VERSION=4.00.1
- OCAML_VERSION=4.01.0
- OCAML_VERSION=4.02.3
- OCAML_VERSION=4.03.0+flambda