https://gitlab.com/nomadic-labs/data-encoding/
Raw File
Tip revision: 64c257813b47a069f57d1686113f18c90942eab9 authored by Raphaƫl Proust on 29 January 2021, 13:37:40 UTC
Expand tests to cover new string conversions
Tip revision: 64c2578
.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