From 05253a574b47f9fad206ef107fd50ef3730ab88e Mon Sep 17 00:00:00 2001
From: Lee Miller <lee.miller@tutanota.com>
Date: Mon, 9 May 2022 19:35:36 +0300
Subject: [PATCH] Add a buildbot dir for jammy, running only py310 env

---
 .buildbot/tox-focal/Dockerfile |  2 ++
 .buildbot/tox-jammy/Dockerfile | 12 ++++++++++++
 .buildbot/tox-jammy/test.sh    |  4 ++++
 3 files changed, 18 insertions(+)
 create mode 100644 .buildbot/tox-jammy/Dockerfile
 create mode 100755 .buildbot/tox-jammy/test.sh

diff --git a/.buildbot/tox-focal/Dockerfile b/.buildbot/tox-focal/Dockerfile
index 116317f3..c2ba0ffc 100644
--- a/.buildbot/tox-focal/Dockerfile
+++ b/.buildbot/tox-focal/Dockerfile
@@ -11,3 +11,5 @@ RUN apt-get install -yq --no-install-suggests --no-install-recommends \
     language-pack-en qt5dxcb-plugin tor xvfb
 
 RUN python3.9 -m pip install --upgrade pip tox virtualenv
+
+ADD . .
diff --git a/.buildbot/tox-jammy/Dockerfile b/.buildbot/tox-jammy/Dockerfile
new file mode 100644
index 00000000..8ca63aa0
--- /dev/null
+++ b/.buildbot/tox-jammy/Dockerfile
@@ -0,0 +1,12 @@
+FROM ubuntu:jammy
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN apt-get update
+
+RUN apt-get install -yq --no-install-suggests --no-install-recommends \
+    software-properties-common build-essential libcap-dev libffi-dev \
+    libssl-dev python-all-dev python-is-python3 python-setuptools \
+    python3-dev python3-pip language-pack-en qt5dxcb-plugin tor xvfb
+
+RUN pip install tox
diff --git a/.buildbot/tox-jammy/test.sh b/.buildbot/tox-jammy/test.sh
new file mode 100755
index 00000000..3de38252
--- /dev/null
+++ b/.buildbot/tox-jammy/test.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+tox -e lint-basic # || exit 1
+tox -e py310