#!/bin/bash

set -eu

function travis_fold {
    local name="$1"; shift
    echo "travis_fold:start:$name"
    echo "\$ $*"
    "$@"
    echo "travis_fold:end:$name"
}

travis_fold docker-deps-0 \
    apt -q update

travis_fold docker-deps-1 \
    apt -qqy install --no-install-recommends \
        build-essential devscripts equivs

# Fails with an unhelpful message.
#travis_fold docker-deps-2 \
#    mk-build-deps -i

travis_fold docker-deps-2 \
    apt -qqy install \
        debhelper \
        devscripts \
        git \
        pylint3 \
        python3 \
        python3-prometheus-client \
        python3-pytest \
        python3-pytest-mock \
        python3-pytest-runner \
        python3-pyudev \
        python3-setuptools

travis_fold docker-changelog \
    fakeroot debian/rules clean

travis_fold docker-buildpackage \
    dpkg-buildpackage -nc -b

#!/bin/bash

set -eu

function travis_fold {
    local name="$1"; shift
    echo "travis_fold:start:$name"
    echo "\$ $*"
    "$@"
    echo "travis_fold:end:$name"
}

travis_fold build-deps-0 \
    apt-get -qq update

travis_fold build-deps-1 \
    apt-get -qqy install --no-install-recommends \
        build-essential devscripts equivs git

travis_fold build-deps-2 \
    mk-build-deps -i -t 'apt-get -qqy --no-install-recommends'

travis_fold changelog \
    fakeroot debian/rules clean

travis_fold buildpackage \
    dpkg-buildpackage -nc -b

Use apt-get, rename travis folds and use mk-build-deps to install build-dependencies
Use apt-get, rename travis folds and use mk-build-deps to install build-dependencies
