Skip to content

Commit

Permalink
cipg: select only actively supported Emacs versions for Coq rc versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriktews committed Jan 28, 2024
1 parent a38857a commit d36cee1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ci/tools/cipg.ml
Original file line number Diff line number Diff line change
Expand Up @@ -604,13 +604,15 @@ let select_newest first_emacs first_coq coqs emacses conts =
* version lists coqs and emacses are sorted with oldest version first,
* if there is an rc version, it's the last one
*)
let select_coq_rc_version coqs emacses conts =
let select_coq_rc_version first_emacs coqs emacses conts =
let first_emacs = get_version_index first_emacs emacses in
let newest_emacs = snd (list_last emacses) in
let (coq_v, coq_i) = list_last coqs in
if coq_v.release_candidate
then
List.iter
(fun (em_v, em_i) -> conts.(coq_i).(em_i) <- RC)
emacses
for em_i = first_emacs to newest_emacs do
conts.(coq_i).(em_i) <- RC
done
else
()

Expand All @@ -622,7 +624,7 @@ let select_containers first_full_range_coq first_active_emacs
select_lts_versions lts coqs emacses conts true;
select_all_latest_versions
first_full_range_coq first_active_emacs coqs emacses conts;
select_coq_rc_version coqs emacses conts;
select_coq_rc_version first_active_emacs coqs emacses conts;
()

(* Select version pairs to be tested in github CI and mark those as
Expand All @@ -634,7 +636,7 @@ let select_ci_pairs first_partial_range_coq first_active_emacs
select_newest first_active_emacs first_active_coq coqs emacses ci_pairs;
select_lts_versions lts coqs emacses ci_pairs false;
select_lts_latest_versions first_partial_range_coq lts coqs emacses ci_pairs;
select_coq_rc_version coqs emacses ci_pairs;
select_coq_rc_version first_active_emacs coqs emacses ci_pairs;
()


Expand Down

0 comments on commit d36cee1

Please sign in to comment.