language: c  # Not really, but Travis doesn't do OCaml.

env:
  - PPA="avsm/ocaml40+opam11" OPAMYES="1"
  - PPA="avsm/ocaml41+opam11" OPAMYES="1"

before_install:
  - "echo 'yes' | sudo add-apt-repository ppa:$PPA"
  - "sudo apt-get update -qq"
  - "sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam"
  - "opam init"
  - "eval `opam config env`"

install:
  - "opam install lwt xmlm ounit"

script:
  # Code generator
  - "pushd code_gen"
  - "make"
  - "ocaml setup.ml -configure --enable-tests"
  - "make test"
  - "popd"
  # Other stuff
  - "make"
  - "ocaml setup.ml -configure --enable-tests"
  - "make test"

language: c  # Not really, but Travis doesn't do OCaml.

env:
  - PPA="avsm/ocaml40+opam11" OPAMYES="1" CONFIGUREFLAGS="--enable-tests"
  - PPA="avsm/ocaml41+opam11" OPAMYES="1" CONFIGUREFLAGS="--enable-tests"

before_install:
  - "echo 'yes' | sudo add-apt-repository ppa:$PPA"
  - "sudo apt-get update -qq"
  - "sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam"
  - "opam init"
  - "eval `opam config env`"

install:
  - "opam install lwt xmlm ounit"

script:
  # Code generator
  - "pushd code_gen"
  - "make"
  - "make test"
  - "popd"
  # Other stuff
  - "make"
  - "make test"

Enable tests with CONFIGUREFLAGS envvar.
Enable tests with CONFIGUREFLAGS envvar.
