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

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

# 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/
    - cp -rf sasabatch.svg  ../../public/
    
  artifacts:
    paths:
      - public