gitlab-ci.sh 453 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. # Give OCaml version as first argument
  3. # Inspired by https://github.com/ocaml/ocaml-ci-scripts
  4. # Installing opam
  5. opam init -y --comp="$1"
  6. eval `opam config env`
  7. # Versions
  8. opam --version
  9. opam --git-version
  10. ocaml -version
  11. # ocamlfind is mandatory to build
  12. opam install -y ocamlfind
  13. # Installing dependancies and testing installation
  14. opam pin add -y oclaunch-ci .
  15. # Building OcLaunch and running tests
  16. ./configure --enable-tests
  17. make test