Skip to content

Commit

Permalink
Improve CI detection
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterDA committed Sep 29, 2023
1 parent 6653195 commit 154f207
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
var. (#322, #381, @MisterDA)

- Stop detecting ocamlci specifically, since there's nothing specific
about it. Simply use the `CI` env var to detect CIs.
about it. Simply use the `CI` env var to detect CIs. Improve CI
detection.
(#397, @MisterDA)

### 1.7.0 (2023-02-24)
Expand Down
2 changes: 1 addition & 1 deletion src/alcotest-engine/config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module Key = struct
let default =
let getenv var =
match Sys.getenv var with
| "true" -> true
| "true" | "True" -> true
| _ | (exception Not_found) -> false
in
let ci = getenv "CI" and github_actions = getenv "GITHUB_ACTIONS" in
Expand Down

0 comments on commit 154f207

Please sign in to comment.