public-inbox.git  about / heads / tags
an "archives first" approach to mailing lists
blob bd1d8a4d65330ad2793a5992d303ec72992eceab 707 bytes (raw)
$ git show HEAD:ci/run.sh	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
#!/bin/sh
# Copyright (C) all contributors <meta@public-inbox.org>
# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
# Beware, this alters system-wide package installation.
set -e
SUDO=${SUDO-'sudo'} PERL=${PERL-'perl'} MAKE=${MAKE-'make'}
DO=${DO-''}

set -x
if test -f Makefile
then
	$DO $MAKE clean >/dev/null
fi
NPROC=${NPROC-$({ getconf _NPROCESSORS_ONLN || getconf NPROCESSORS_ONLN ||
		echo 2; } 2>/dev/null)}

TEST_JOBS=${TEST_JOBS-1}
$PERL -w ci/profiles.perl | while read args
do
	$DO $SUDO $PERL -w install/deps.perl -y --allow-remove $args
	$DO $PERL Makefile.PL
	$DO $MAKE -j${BUILD_JOBS-$NPROC}
	$DO $MAKE ${TEST_TARGET-check} N=${N-$TEST_JOBS}
	$DO $MAKE clean >/dev/null
done

git clone https://public-inbox.org/public-inbox.git
git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/public-inbox.git