]> eyrie.org Git - kerberos/krb5-strength.git/blob - ci/install
0a50c614d20327ceee8a98974ce717c86490c7fe
[kerberos/krb5-strength.git] / ci / install
1 #!/bin/sh
2 #
3 # Install packages for integration tests.
4 #
5 # This script is normally run via sudo in a test container or VM, such as via
6 # GitHub Actions.
7 #
8 # Perl::Tidy, Perl::Critic, and Test::Perl::Critic are installed separately to
9 # get the latest version, since they sometimes change formatting and style
10 # rules compared to the version in Ubuntu.  Test::MinimumVersion has to be
11 # included since it installs Perl::Critic.
12 #
13 # Allow the installation of Perl::Critic and Test::Perl::Critic to fail, since
14 # sometimes the versions on CPAN won't install.  (We'll just skip the test if
15 # it won't install.)
16 #
17 # Copyright 2015-2020 Russ Allbery <eagle@eyrie.org>
18 #
19 # SPDX-License-Identifier: MIT
20
21 set -eux
22
23 # Install packages.
24 apt-get update -qq
25 apt-get install aspell cpanminus cppcheck heimdal-multidev libcdb-dev   \
26         libdb-file-lock-perl libcrypt-pbkdf2-perl libdbd-sqlite3-perl   \
27         libdbi-perl libgetopt-long-descriptive-perl libipc-run-perl     \
28         libjson-perl libkrb5-dev libperl6-slurp-perl libreadonly-perl   \
29         libsqlite3-dev libtest-pod-perl libtest-spelling-perl           \
30         libtest-strict-perl pkg-config perl tinycdb valgrind
31
32 # Dependencies for Perl tests.
33 cpanm Perl::Tidy
34 cpanm Perl::Critic         || true
35 cpanm Test::MinimumVersion || true
36 cpanm Test::Perl::Critic   || true