about summary refs log tree commit
path: root/ci/run.sh
blob: 3f36d0d9eb001eb5c36132bb8ff6b92e0fe68902 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# Copyright (C) 2019-2020 all contributors <meta@public-inbox.org>
# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
set -e
SUDO=${SUDO-'sudo'} PERL=${PERL-'perl'} MAKE=${MAKE-'make'}
DO=${DO-''}

set -x
if test -f Makefile
then
	$DO $MAKE clean
fi

./ci/profiles.sh | while read args
do
	$DO $SUDO $PERL -w ci/deps.perl $args
	$DO $PERL Makefile.PL
	$DO $MAKE
	$DO $MAKE check
	$DO $MAKE clean
done