From 09c2f2b6944a5a93aff38f50a8f9fdbccdc19448 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Mon, 11 Apr 2022 10:59:35 +0530 Subject: [PATCH] Fixed kivy buildbot --- .buildbot/kivy/Dockerfile | 16 ++++++++++------ .buildbot/kivy/build.sh | 3 +++ .buildbot/kivy/test.sh | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100755 .buildbot/kivy/build.sh diff --git a/.buildbot/kivy/Dockerfile b/.buildbot/kivy/Dockerfile index 56d1c9c4..2ce964dd 100644 --- a/.buildbot/kivy/Dockerfile +++ b/.buildbot/kivy/Dockerfile @@ -2,19 +2,23 @@ FROM ubuntu:bionic AS kivy # FROM ubuntu:20.04 AS buildbot-bionic +ENV DEBIAN_FRONTEND=noninteractive + RUN apt-get update RUN apt-get -y install sudo RUN apt-get install -yq python-setuptools \ python-setuptools libssl-dev libpq-dev python-prctl python-dev \ - python-dev python-virtualenv python-pip virtualenv \ - libssl-dev \ - python-dev \ + python-virtualenv python-pip virtualenv \ + libjpeg-dev zlib1g-dev python3-dev \ python3-virtualenv \ python3-pip \ - wget + wget \ + build-essential libcap-dev libmtdev-dev xvfb xclip git python3-opencv + +RUN pip3 install Cython Pillow pyzbar telenium -RUN wget -O /usr/local/bin/travis2bash.sh https://git.bitmessage.org/Bitmessage/buildbot-scripts/raw/branch/master/travis2bash.sh +RUN pip3 install --upgrade setuptools pip -RUN chmod a+rx "/usr/local/bin/travis2bash.sh" +RUN pip3 install -e git+https://github.com/kivymd/KivyMD#egg=kivymd diff --git a/.buildbot/kivy/build.sh b/.buildbot/kivy/build.sh new file mode 100755 index 00000000..f07e5756 --- /dev/null +++ b/.buildbot/kivy/build.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +python setup.py install --user diff --git a/.buildbot/kivy/test.sh b/.buildbot/kivy/test.sh index 04838747..d01ca870 100755 --- a/.buildbot/kivy/test.sh +++ b/.buildbot/kivy/test.sh @@ -1,3 +1,3 @@ #!/bin/bash -travis2bash.sh .travis-kivy.yml +xvfb-run python3 tests-kivy.py