From bf0378257afcb8fa2542e5cf904691ec5fdd74b1 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Wed, 9 Sep 2015 13:24:45 -0300 Subject: [feat] use docker to test .deb packages Add scripts to easily test (stable or unstable) debian packages. - Resolves: #6715 --- docker/debian/bitmask-on-docker.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 docker/debian/bitmask-on-docker.sh (limited to 'docker/debian/bitmask-on-docker.sh') diff --git a/docker/debian/bitmask-on-docker.sh b/docker/debian/bitmask-on-docker.sh new file mode 100755 index 00000000..c3e42b22 --- /dev/null +++ b/docker/debian/bitmask-on-docker.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# Helper script to install, run and do a screenshot of bitmask + +# You can use this as follows: +# $ docker run -t -i --rm -v `pwd`:/host/ ubuntu:14.04 /bin/bash +# $ cd /host/ +# $ ./bitmask-on-docker.sh stable + +[[ -z $1 ]] && exit 1 + +./apt-bitmask.sh $1 # this does an `apt-get update` +apt-get -y install xinit xvfb imagemagick lxpolkit + +startx -- `which Xvfb` :1 -screen 0 1024x768x24 & +sleep 1 + +DISPLAY=:1 lxpolkit & +sleep 0.5 # bitmask needs polkit to work + +DISPLAY=:1 bitmask & +sleep 2 # wait for bitmask to start + +DISPLAY=:1 import -window root bitmask.png -- cgit v1.2.3