aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorrubicks <naroza@gmail.com>2017-12-30 18:17:06 +0000
committerGuido Günther <agx@sigxcpu.org>2018-01-12 13:15:48 +0100
commitf1694df5c8948fbe3866fdfb92c947a2d380e640 (patch)
tree914a00e7fa34e1f6dcd4a7f41e875b7dc44c0ac4 /tests
parente36592d4b8c37756100dddbe0d6a1332bf31d57f (diff)
Rework docker script to allow to build packages as well
Move `tests/helpers/run-in-docker` to `packaging/run-in-docker` and add package option to build gbp packages in a docker container.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/helpers/run-in-docker34
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/helpers/run-in-docker b/tests/helpers/run-in-docker
deleted file mode 100755
index 7d6a1232..00000000
--- a/tests/helpers/run-in-docker
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-set -eu
-
-echo $(pwd)
-cat >Dockerfile <<EOF
-FROM debian:sid
-ENV DEBIAN_FRONTEND=noninteractive
-RUN echo "deb http://ftp.de.debian.org/debian sid main" > /etc/apt/sources.list
-RUN echo "deb-src http://ftp.de.debian.org/debian sid main" >> /etc/apt/sources.list
-RUN apt-get update && apt-get dist-upgrade --yes
-RUN apt-get install -y --no-install-recommends build-essential adduser
-RUN adduser gbp --disabled-password --gecos='gbp docker test user' --shell=/bin/bash --home /git-buildpackage
-
-WORKDIR /git-buildpackage
-COPY . .
-RUN chown -R gbp: .
-
-RUN apt-get -y build-dep .
-# Run as non root so permision tests pass
-CMD su -c "make all+net" gbp
-EOF
-
-CIDFILE="$(mktemp --dry-run)"
-TAG="git-buildpackage/sid"
-echo "Building Docker image ${TAG}"
-docker build . --tag=${TAG}
-
-for L in C.UTF-8 C; do
- docker run --cidfile=${CIDFILE} -e "TEST_LOCALE=${L}" ${TAG}
- docker rm "$(cat ${CIDFILE})" >/dev/null
- rm -f ${CIDFILE}
-done
-