Skip to content
Snippets Groups Projects
.gitlab-ci.yml 2.31 KiB
Newer Older
erwan's avatar
erwan committed
image: ocaml/opam:ubuntu-20.04-ocaml-4.14
erwan's avatar
erwan committed

erwan's avatar
erwan committed
stages:
  - build
  - release
  - deploy
erwan's avatar
erwan committed
  stage: build
  script:
    - opam repo add official "https://opam.ocaml.org/"
erwan's avatar
erwan committed
    - opam repo add verimag-sync-repo "http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/opam-repository"
    - opam update
erwan's avatar
erwan committed
    - eval `opam config env`
erwan's avatar
erwan committed
    - sudo apt-get update
erwan's avatar
erwan committed
    - sudo apt install bc time
    - opam depext sasa rdbgui4sasa lutin kind2 z3 || echo "not needed for recent opam version"
erwan's avatar
erwan committed
    - opam install --deps-only ./sasa.opam ./salut.opam ./rdbgui4sasa.opam
    - opam install lutin
erwan's avatar
erwan committed
    - make
erwan's avatar
erwan committed
    - make test-ci
    - make test-ci-salut
    - cd tools/simca
    - make && make cmxs && make log -j 15 && make pdf
  image: gricad-registry.univ-grenoble-alpes.fr/verimag/synchrone/tools-distrib/verimag-reactive-toolbox
  stage: release
  script:
    - make && make cmxs && make log -j 15 && make pdf
erwan's avatar
erwan committed
    - sudo apt update
    - opam repo add official "https://opam.ocaml.org/"
    - opam repo add verimag-sync-repo "http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/test/opam-repository"
    - eval `opam config env`
erwan's avatar
erwan committed
    - opam depext -y sasa salut lutin rdbgui4sasa || echo "not needed for recent opam version"
    - opam install -y sasa salut lutin rdbgui4sasa
erwan's avatar
erwan committed
# automating version numbering
release:
  image: node:20-buster-slim
  stage: release
erwan's avatar
erwan committed
  before_script:
    - apt-get update && apt-get install -y --no-install-recommends git-core ca-certificates
    - npm install -g semantic-release  @semantic-release/gitlab
  script:
    - semantic-release
erwan's avatar
erwan committed
  only:
    - master
  image: gricad-registry.univ-grenoble-alpes.fr/verimag/synchrone/tools-distrib/verimag-reactive-toolbox
erwan's avatar
erwan committed
    - make odoc
    - mkdir public
    - cd guides/users
    - cp README.html ../../public/index.html
erwan's avatar
erwan committed
    - cp -rf _html  ../../public/
    - cp -rf ../styles/  ../../public/
erwan's avatar
erwan committed
    - cp -rf sasabatch.pdf  ../../public/
    - cp -rf sasabatch.png  ../../public/
    - cp -rf poster.png  ../../public/
erwan's avatar
erwan committed
    - cp -rf sasabatch.svg  ../../public/