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"
|
2020-04-26 14:34:56 +00:00
|
|
|
env:
|
|
|
|
- PIPENV_VERBOSITY=-1
|
2018-12-19 22:38:49 +00:00
|
|
|
virtualenv:
|
|
|
|
system_site_packages: true
|
2019-01-14 19:43:54 +00:00
|
|
|
services:
|
2020-04-26 12:12:50 +00:00
|
|
|
- xvfb
|
2019-01-15 02:28:51 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
2020-04-26 17:28:26 +00:00
|
|
|
update: true
|
2019-01-15 02:28:51 +00:00
|
|
|
packages:
|
|
|
|
- xvfb
|
2020-04-26 17:28:26 +00:00
|
|
|
- libdbus-1-dev
|
|
|
|
- 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
|
2020-04-26 18:18:12 +00:00
|
|
|
- at-spi2-core
|
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:
|
2020-04-26 12:12:50 +00:00
|
|
|
- pip install --upgrade pip pypresence~=3.3.2 pipenv
|
2020-04-26 17:02:48 +00:00
|
|
|
- pipenv install --dev --deploy --ignore-pipfile
|
2020-04-26 12:12:50 +00:00
|
|
|
script:
|
|
|
|
- make check
|
|
|
|
- nosetests
|
2017-03-03 19:23:30 +00:00
|
|
|
|
2019-01-14 19:35:20 +00:00
|
|
|
# Cache the pip dependencies
|
2019-01-15 02:28:51 +00:00
|
|
|
cache: pip
|