aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/docker
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/docker-compose.yml13
-rw-r--r--test/docker/Dockerfile9
2 files changed, 22 insertions, 0 deletions
diff --git a/test/docker-compose.yml b/test/docker-compose.yml
new file mode 100644
index 0000000..76546c4
--- /dev/null
+++ b/test/docker-compose.yml
@@ -0,0 +1,13 @@
+version: '3'
+services:
+ test:
+ build:
+ context: docker/
+ args:
+ DISTRO: "${DISTRO:-xenial}"
+ volumes:
+ - ../:/src
+ command:
+ - sh
+ - -c
+ - /src/test/unit/test.sh && /src/test/integration/test.sh
diff --git a/test/docker/Dockerfile b/test/docker/Dockerfile
new file mode 100644
index 0000000..5d4d016
--- /dev/null
+++ b/test/docker/Dockerfile
@@ -0,0 +1,9 @@
+ARG DISTRO=xenial
+
+FROM ubuntu:$DISTRO
+
+RUN apt-get update && \
+ DEBIAN_FRONTEND=noninteractive \
+ apt-get install -y --no-install-recommends ca-certificates git
+
+RUN git config --global --add safe.directory /src