Skip to content

Commit

Permalink
Some minor changes to the CI scripts (#404)
Browse files Browse the repository at this point in the history
* octave_ci.m: Avoid error if previous versions depended on Ubuntu packages

* octave_ci.m: Show output of apt in log

* octave_ci.m: Avoid input prompts during Ubuntu package installation
  • Loading branch information
mmuetzel authored Feb 10, 2024
1 parent 5681cb2 commit e490d6b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions assets/ci/octave_ci.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ function octave_ci (package_name, pkg_index_file)

if (! isempty (ubuntu2204))
step_group_start ("Install Ubuntu 22.04 dependencies");
[~,~] = system ("sudo apt-get update");
[~,~] = system (["sudo apt-get install --yes ", strjoin(ubuntu2204)]);
system ("sudo apt-get update");
## Avoid input prompts during package installation (e.g., for tzdata)
system (["sudo DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC ", ...
"apt-get install --yes apt-utils ", strjoin(ubuntu2204)]);
step_group_end ("done.");
endif

Expand Down Expand Up @@ -214,7 +216,7 @@ function pkg_install_sha256_check (pkg_version, test_dir)
endfor
endif

if (isfield (p, "ubuntu2204"))
if (isfield (p, "ubuntu2204") && ! isempty (p.ubuntu2204))
new_ubuntu2204 = {p.ubuntu2204.name};
for i = 1:length (new_ubuntu2204)
## Ubuntu/Debian package name must consist only of lower case letters
Expand Down

0 comments on commit e490d6b

Please sign in to comment.