tests_without_recompilation:
  #debian/stable
  image: debian@sha256:7ceacc4462a98718b236cbdeb850d4b7603afe4bab791336a0ed1c030f769f02
  script:
   - apt-get update
   - apt-get install -y ocaml-nox
  #Eclipse Prolog compilation of COLIBRI
   - ocamlopt -o compile_colibri unix.cmxa compile_colibri.ml
   - ./compile_colibri
  #Bundle in bundle directory
   - ./bundle.sh bundle
   - cp -ra Bin/ECLIPSE_V7.0_45/ bundle/ECLIPSE/
  #Test
   - apt-get update
   - apt-get install -y parallel
   - ./test.sh -j2
  artifacts:
    paths:
     - logs
    expire_in: 1 week
  tags:
    - docker

tests_with_recompilation:
  #ocaml/opam:debian-10-ocaml-4.11
  image: ocaml/opam@sha256:e570e5dd74bb4986e022d5c25fe42579288d11fb0b60df13794632a8f0a110b6
  script:
   - rm -f Src/COLIBRI/lib/v7/x86_64_linux/* Src/COLIBRI/simplex_ocaml.pl
  #OCaml dependencies
   - opam depext --install dune zarith ocplib-simplex parsexp menhir fmt spelll gen uutf
  #OCaml compilation
   - make ECLIPSEBIN=$(pwd)/Bin/ECLIPSE_V7.0_45/
  #Bundle in bundle directory
   - ./bundle.sh bundle
   - cp -ra Bin/ECLIPSE_V7.0_45/ bundle/ECLIPSE/
  #Test
   - sudo apt-get update
   - sudo apt-get install -y parallel
   - ./test.sh -j2
  artifacts:
    paths:
     - logs
    expire_in: 1 week
  tags:
    - docker