Skip to content
Snippets Groups Projects
.gitlab-ci.yml 1.64 KiB
image: ocaml/opam2:ubuntu

stages:
  - build
  - release
  - deploy
  
build:
  stage: build
  script:
    - opam repo add verimag-sync-repo "http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/test/opam-repository"
    - eval `opam config env`
    - opam depext -y lustre-v6 lutin  lablgtk3
    - opam install -y dune ocamlgraph lutin lablgtk3
    - make
    - make install
    - make test

simca:
  stage: release
  script:
    - opam repo add verimag-sync-repo "http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/test/opam-repository"
    - eval `opam config env`
    - opam update -y
    - opam depext -y sasa 
    - opam install -y sasa
    - cd tools/simca
    - make
    - make cmxs
    - make log
    - make pdf
  allow_failure: true

  
test_opam_test:
  stage: release
  script:
    - opam repo add verimag-sync-repo "http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/test/opam-repository"
    - eval `opam config env`
    - opam depext -y sasa 
    - opam install -y sasa
  allow_failure: true



# automating version numbering
release:
  before_script:
    - yarn install --frozen-lockfile
  image: node:8
  only:
    - master
  script:
    - $(yarn bin)/semantic-release-gitlab  --preset eslint
  stage: release

pages:
  image: jahierwan/verimag-sync-tools
  stage: deploy
  script:
    - make odoc
    - mkdir public
    - cd guides/users
    - make 
    - cp README.html ../../public/index.html
    - cp -rf _html  ../../public/
    - cp -rf ../styles/  ../../public/
    - cp -rf sasabatch.pdf  ../../public/
    - cp -rf sasabatch.png  ../../public/
    - cp -rf poster.png  ../../public/