https://gitlab.com/tezos/tezos
Raw File
Tip revision: 56dd6968a76c98341ca6fc71e8ac82885f8a6447 authored by Anne-Laure on 03 April 2024, 15:14:05 UTC
Tezt/Tests/Dal: change test_gc_with_all_profiles to use Auto history mode
Tip revision: 56dd696
README.md
# CI-in-OCaml

This directory contains an OCaml library for writing generators of
GitLab CI configuration files (i.e. `.gitlab-ci.yml`).

This directory is structured like this:

 - `lib_gitlab_ci`: contains a partial, slightly opiniated, AST of
   [GitLab CI/CD YAML syntax](https://docs.gitlab.com/ee/ci/yaml/).
 - `bin`: contains a set of helpers for creating the Octez-specific
   GitLab CI configuration files and an executable that generates part
   of the CI configuration using those helpers.

## Usage

To regenerate the GitLab CI configuration, run (from the root of the repo):

    make -C ci all

To check that the GitLab CI configuration is up-to-date, run (from the root of the repo):

    make -C ci check

To see all available targets, run:

    make -C ci help

To call the underlying generator binary, call

    dune exec bin/ci/main.exe

If you do not have an OCaml environment installed, then you can
regenerate the configuration through Docker, with the following
command:

    make -C ci docker-all

This will work with all the other targets, such that `make -C ci
docker-TGT` runs `make -C ci TGT` inside a Docker image with the
required prerequisites installed.

For more information, see

    dune exec bin/ci/main.exe -- --help
back to top