Skip to content

Commit

Permalink
Define CLICOLOR_FORCE=1 env var in CI runs
Browse files Browse the repository at this point in the history
This env var is supported by some tools to force them to emit ANSI
escape sequences corresponding to colors even if they detect that
they're not running in tty, which is th case for CI jobs.

It is going to be supported in Dune 3.6.0, and perhaps other compilers
and build systems.

Signed-off-by: Antonin Décimo <[email protected]>
  • Loading branch information
MisterDA committed Nov 8, 2022
1 parent 57f9b5a commit e45b8a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to

## [unreleased]

## Added

- Define `CLICOLOR_FORCE=1` in CI runs.

## [2.0.6]

### Added
Expand Down
2 changes: 2 additions & 0 deletions src/setup-ocaml/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,5 @@ const defaultRepository =
export const OPAM_REPOSITORIES: [string, string][] = repositories_yaml
? Object.entries(repositories_yaml).reverse()
: [["default", defaultRepository]];

export const CLICOLOR_FORCE = "1";
1 change: 1 addition & 0 deletions src/setup-ocaml/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export async function installer(): Promise<void> {
core.exportVariable("DUNE_CACHE", "enabled");
core.exportVariable("DUNE_CACHE_TRANSPORT", "direct");
}
core.exportVariable("CLICOLOR_FORCE", "1");
const fnames = await getOpamLocalPackages();
if (fnames.length > 0) {
if (OPAM_PIN) {
Expand Down

0 comments on commit e45b8a9

Please sign in to comment.