summaryrefslogtreecommitdiff
path: root/test/docker/docker-script.sh
blob: 681f2429a9ebb71cc7a1690f31b48bf5522b15aa (plain)
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
26
27
28
29
30
31
32
#!/bin/sh -ex

if [ $DIST = tools ]; then
    rc=0
    perlcritic helpers/perl; rc=$((rc+$?))
    perltidy -nst -nse helpers/perl; rc=$((rc+$?))
    if [ -e helpers/perl.ERR ]; then
        cat helpers/perl.ERR
        rc=$((rc+1))
    fi
    flake8 helpers/python test test/generate; rc=$((rc+$?))
    black --check -t py27 -t py33 -t py34 -t py35 -t py36 -t py37 -t py38 \
        helpers/python; rc=$((rc+$?))
    black --check test test/generate; rc=$((rc+$?))
    exit $rc
fi

if [ "$BSD" ]; then
    PATH=/usr/local/lib/bsd-bin:$PATH
    export PATH
fi

export bashcomp_bash=bash
env

autoreconf -i
./configure
make -j

xvfb-run make distcheck \
    PYTESTFLAGS="--numprocesses=auto --dist=loadfile" \
    RUNTESTFLAGS="--all --verbose"