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

erwan's avatar
erwan committed
stages:
  - build
  - release
  - deploy
  
erwan's avatar
erwan committed
test:
  stage: build
  script:
    - opam repo add opamorg "https://opam.ocaml.org/1.2.2"
    - opam repo add verimag-sync-repo "http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/opam-repository"
    - opam update -y
erwan's avatar
erwan committed
    - opam switch 4.07.0
erwan's avatar
erwan committed
    - eval `opam config env`
    - opam depext -y lustre-v6  lutin
    - opam install -y dune ocamlgraph lutin
erwan's avatar
erwan committed
    - make
erwan's avatar
erwan committed
    - make test
erwan's avatar
erwan committed

# 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
  image: jahierwan/verimag-sync-tools
    - mkdir public
    - cd guides/users
    - make
    - cp README.html ../../public/index.html
    - cp -rf ../styles/  ../../public/