From 364398b5cec0de55de30ab26ea9b71fe4160f37d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 7 May 2019 09:09:54 +0000 Subject: ci: include some scripts to make CI easier This should make it easier to test a bunch of package installation profiles across whatever OS isolation one chooses (chroots, containers, jails, VMs) --- ci/run.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 ci/run.sh (limited to 'ci/run.sh') diff --git a/ci/run.sh b/ci/run.sh new file mode 100755 index 00000000..87d95618 --- /dev/null +++ b/ci/run.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# Copyright (C) 2019 all contributors +# License: AGPL-3.0+ +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 -- cgit v1.2.3-24-ge0c7