gitlab-ci.sh 605 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. # Give OCaml version as first argument
  3. # Inspired by https://github.com/ocaml/ocaml-ci-scripts
  4. # Use -y with evry opam command
  5. export OPAMYES=true
  6. # Installing opam
  7. opam init --comp="$1"
  8. eval `opam config env`
  9. # Versions
  10. opam --version
  11. opam --git-version
  12. ocaml -version
  13. # ocamlfind is mandatory to build
  14. opam install ocamlfind
  15. # XXX Manualy install development dependancies, not yet supported (ait opam 1.3)
  16. opam install alcotest oUnit
  17. # Installing dependancies and testing installation
  18. opam pin add oclaunch-ci .
  19. # Building OcLaunch and running tests
  20. ./configure --enable-tests
  21. make test