gitlab-ci.sh 489 B

12345678910111213141516171819202122232425
  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. 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. # Installing dependancies and testing installation
  16. opam pin add oclaunch-ci .
  17. # Building OcLaunch and running tests
  18. ./configure --enable-tests
  19. make test