https://gitlab.com/nomadic-labs/data-encoding/
Raw File
Tip revision: 03b5cddde170fb5aaac056b364b0e85493a49df7 authored by Raphaƫl Proust on 17 February 2021, 09:49:05 UTC
Merge branch 'fix-small-typo-in-zarith-encoding-descriptions' into 'master'
Tip revision: 03b5cdd
.gitlab-ci.yml
---

.build_template:
  image: ocaml/opam2:alpine-3.10-ocaml-4.08
  before_script:
    - sudo apk add --update gmp-dev m4 perl
    - opam repository set-url default https://opam.ocaml.org
    - opam update
    - opam pin --no-action data-encoding .
    - opam depext data-encoding
    - opam install --deps-only data-encoding
  cache:
    key: "$CI_COMMIT_REF_SLUG"
    paths:
      - _build

build:
  extends: .build_template
  stage: build
  script:
    - dune build

test:
  extends: .build_template
  stage: test
  script:
    - opam depext ocamlformat.0.11.0
    - opam install ocamlformat.0.11.0
    - dune build @fmt
    - opam depext --dry-run crowbar alcotest
    - opam install --deps-only --with-test .
    - dune runtest

pages:
  extends: .build_template
  stage: deploy
  artifacts:
    paths:
      - public/
  rules:
    - if: '$CI_COMMIT_BRANCH == "master"'
  script:
    - opam install odoc
    - dune build @doc
    - mv _build/default/_doc/_html public/
back to top