Update travis config

Use bionic instead of xenial, since xenial is almost EOL.
Use apt instead of apt-get.
Add python3-distro dependency.

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
Stephan Lachnit 2020-01-06 09:54:48 +01:00 committed by Mathieu Comandon
parent 036b070d69
commit 888d904eda

View file

@ -1,7 +1,7 @@
dist: xenial dist: bionic
language: python language: python
python: python:
- "3.5" - "3.6"
virtualenv: virtualenv:
system_site_packages: true system_site_packages: true
services: services:
@ -17,8 +17,8 @@ before_install:
- sleep 3 # Give xvfb some time to start - sleep 3 # Give xvfb some time to start
install: install:
- pip install --upgrade pip pypresence~=3.3.2 - pip install --upgrade pip pypresence~=3.3.2
- sudo apt-get -qq update - sudo apt -qq update
- sudo apt-get install -y python3-yaml python3-gi python3-pil python3-setproctitle 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 - 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
script: nosetests script: nosetests
# Cache the pip dependencies # Cache the pip dependencies