2020-01-06 08:54:48 +00:00
|
|
|
dist: bionic
|
2017-03-03 19:23:30 +00:00
|
|
|
language: python
|
|
|
|
python:
|
2020-01-06 08:54:48 +00:00
|
|
|
- "3.6"
|
2018-12-19 22:38:49 +00:00
|
|
|
virtualenv:
|
|
|
|
system_site_packages: true
|
2019-01-14 19:43:54 +00:00
|
|
|
services:
|
|
|
|
- xvfb
|
2019-01-15 02:28:51 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- xvfb
|
2017-03-04 06:27:03 +00:00
|
|
|
before_install:
|
2017-03-05 23:40:23 +00:00
|
|
|
- "export DISPLAY=:99.0"
|
2019-01-15 02:28:51 +00:00
|
|
|
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
|
2017-03-05 23:40:23 +00:00
|
|
|
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
|
2019-01-14 19:45:23 +00:00
|
|
|
- sleep 3 # Give xvfb some time to start
|
2017-03-03 19:23:30 +00:00
|
|
|
install:
|
2019-05-11 19:16:52 +00:00
|
|
|
- pip install --upgrade pip pypresence~=3.3.2
|
2020-01-06 08:54:48 +00:00
|
|
|
- sudo apt -qq update
|
|
|
|
- sudo apt install -y python3-yaml python3-gi python3-pil python3-setproctitle python3-distro gir1.2-gtk-3.0 psmisc gir1.2-glib-2.0 libgirepository1.0-dev gir1.2-gnomedesktop-3.0 gir1.2-webkit2-4.0 gir1.2-notify-0.7
|
2017-03-03 19:23:30 +00:00
|
|
|
script: nosetests
|
|
|
|
|
2019-01-14 19:35:20 +00:00
|
|
|
# Cache the pip dependencies
|
2019-01-15 02:28:51 +00:00
|
|
|
cache: pip
|