Blame .travis.yml

Packit 9ee409
language: c
Packit 9ee409
os: linux
Packit 9ee409
env:
Packit 9ee409
  - OCAML_VERSION=4.03.0
Packit 9ee409
  - OCAML_VERSION=4.04.0
Packit 9ee409
install:
Packit 9ee409
  - echo "yes" | sudo add-apt-repository ppa:avsm/ocaml42+opam12
Packit 9ee409
  - sudo apt-get update -qq
Packit 9ee409
  - sudo apt-get install -qq opam
Packit 9ee409
  - export OPAMYES=1
Packit 9ee409
  - opam init --compiler=${OCAML_VERSION}
Packit 9ee409
  - opam install ocamlfind camlp4 menhir
Packit 9ee409
script:
Packit 9ee409
  - eval `opam config env`
Packit 9ee409
  # First, run our own testsuite. Do this *before* any ocamlbuild is installed globally,
Packit 9ee409
  # to check that we don't have a spurious dependency on a global ocamlbuild.
Packit 9ee409
  - VERBOSE=1 make test
Packit 9ee409
  # Second, bootstrap ourselves using the freshly built binaries, as a more complex
Packit 9ee409
  # exercise than the testsuite alone.
Packit 9ee409
  - OCAMLBUILD=$(pwd)/ocamlbuild.native make -C bootstrap
Packit 9ee409
  # Third, verify that installation works, and a variety of downstream opam packages
Packit 9ee409
  # still install.
Packit 9ee409
  - make distclean
Packit 9ee409
  - opam pin add -n -k path ocamlbuild .
Packit 9ee409
  - opam install -v ocamlbuild
Packit 9ee409
  - opam install -v mtime # this tests topkg, with stub libraries
Packit 9ee409
  - opam install -v inotify # this tests oasis, with stub libraries
Packit 9ee409
  - opam install -v cpuid # this tests the ocb-stubblr plugin
Packit 9ee409
  - opam install -v ppx_deriving # this tests the cppo plugin