Skip to content

Commit

Permalink
bugfix: --no-$cisystem actually works now
Browse files Browse the repository at this point in the history
  • Loading branch information
eserte committed Nov 19, 2023
1 parent 4244840 commit ce3b037
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/check-ci
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ if (!$check{"travis"} && !$check{"appveyor"} && !$check{"github actions"}) {
$check{"github actions"} = 1;
} else {
# for "check-ci" or something else: check both if appropriate files exist
# but ignore any CI system explicitly disabled using --no-... option
chomp(my $rootdir = `git rev-parse --show-toplevel`);
$check{"travis"} = -f "$rootdir/.travis.yml";
$check{"appveyor"} = -f "$rootdir/appveyor.yml" || -f "$rootdir/.appveyor.yml";
$check{"github actions"} = -d "$rootdir/.github/workflows" && bsd_glob("$rootdir/.github/workflows/*");
$check{"travis"} = !defined $check{"travis"} && -f "$rootdir/.travis.yml";
$check{"appveyor"} = !defined $check{"appveyor"} && -f "$rootdir/appveyor.yml" || -f "$rootdir/.appveyor.yml";
$check{"github actions"} = !defined $check{"github actions"} && -d "$rootdir/.github/workflows" && bsd_glob("$rootdir/.github/workflows/*");
}
}

Expand Down

0 comments on commit ce3b037

Please sign in to comment.