aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2019-10-03 15:21:36 +0100
committerSergio Martins <smartins@kde.org>2019-10-03 15:21:36 +0100
commit763ed0820afa28a65a93b81d1ed6223d9b2d73df (patch)
tree13780b94544f22e968657d1e7ac869f971f63171
parent6ee3daa03f049dd5041760ac80e83b0dd2faf68d (diff)
tests: Add Archlinux and Debian Dockerfiles
-rw-r--r--tests/docker/conf.json12
-rw-r--r--tests/docker/images/clazy-archlinux/Dockerfile12
-rw-r--r--tests/docker/images/clazy-debian-unstable/Dockerfile12
3 files changed, 36 insertions, 0 deletions
diff --git a/tests/docker/conf.json b/tests/docker/conf.json
index 4f201f0f..983b5322 100644
--- a/tests/docker/conf.json
+++ b/tests/docker/conf.json
@@ -17,6 +17,18 @@
"url" : "iamsergio/clazy-ubuntu-18.04",
"llvm_root" : "/usr/lib/llvm-8",
"comment" : "llvm-8;Qt-5.9.5"
+ },
+ {
+ "name" : "debian-unstable",
+ "url" : "iamsergio/clazy-debian-unstable",
+ "llvm_root" : "/usr/lib/llvm-9",
+ "comment" : "llvm-9;Qt-5.11.3"
+ },
+ {
+ "name" : "archlinux",
+ "url" : "iamsergio/clazy-archlinux",
+ "llvm_root" : "/usr",
+ "comment" : "llvm-8;Qt-5.13.1"
}
]
}
diff --git a/tests/docker/images/clazy-archlinux/Dockerfile b/tests/docker/images/clazy-archlinux/Dockerfile
new file mode 100644
index 00000000..377c1b12
--- /dev/null
+++ b/tests/docker/images/clazy-archlinux/Dockerfile
@@ -0,0 +1,12 @@
+# This Dockerfile creates the container for testing on Archlinux
+# You can run, for example: clazy/tests/docker/test_docker.py -b 1.6 , which will run the tests in all containers
+# Or explicitly: docker run -i -t iamsergio/clazy-archlinux sh /root/clazy/tests/docker/build-clazy.sh 1.6 -j12 none /usr
+
+FROM archlinux/base
+MAINTAINER Sergio Martins (sergio.martins@kdab.com)
+
+RUN pacman -Syu --noconfirm
+RUN pacman -S git cmake ninja make gcc python3 clang llvm qt5-base qt5-declarative --noconfirm
+
+WORKDIR /root
+RUN git clone https://github.com/KDE/clazy.git
diff --git a/tests/docker/images/clazy-debian-unstable/Dockerfile b/tests/docker/images/clazy-debian-unstable/Dockerfile
new file mode 100644
index 00000000..9c3d0aff
--- /dev/null
+++ b/tests/docker/images/clazy-debian-unstable/Dockerfile
@@ -0,0 +1,12 @@
+# This Dockerfile creates the container for testing on Debian
+# You can run, for example: clazy/tests/docker/test_docker.py -b 1.6 , which will run the tests in all containers
+# Or explicitly: docker run -i -t iamsergio/clazy-debian-unstable sh /root/clazy/tests/docker/build-clazy.sh 1.6 -j12 none /usr/lib/llvm-9/
+
+FROM debian:unstable
+MAINTAINER Sergio Martins (sergio.martins@kdab.com)
+
+RUN apt-get update
+RUN apt install -y g++ cmake clang-9 clang-tools-9 libclang-9-dev git-core python3 ninja-build qtbase5-dev qtdeclarative5-dev
+
+WORKDIR /root
+RUN git clone https://github.com/KDE/clazy.git