gitlab-ci.sh 716 B

123456789101112131415161718192021222324252627282930313233
  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. echo "= Versions ="
  11. echo "opam --version"
  12. opam --version
  13. echo "opam --git-version"
  14. opam --git-version
  15. echo "ocaml -version"
  16. ocaml -version
  17. echo "============"
  18. # ocamlfind is mandatory to build
  19. opam install ocamlfind
  20. # XXX Manually install development dependancies, not yet supported (ait opam 1.3)
  21. opam install alcotest oUnit
  22. # Installing dependancies and testing installation
  23. opam pin add oclaunch-ci .
  24. # Building OcLaunch and running tests
  25. ./configure --enable-tests
  26. make test