[Travis] Remove Python2 tests

This commit is contained in:
Calum Lind 2019-05-22 14:14:44 +01:00
parent 260d55aeae
commit 0f92ea401f

View File

@ -3,6 +3,7 @@ sudo: required
language: python language: python
python: python:
# Travis Xenial Python to support system_site_packages
- 3.5 - 3.5
cache: pip cache: pip
virtualenv: virtualenv:
@ -18,9 +19,6 @@ git:
matrix: matrix:
include: include:
- name: Unit tests - Python 2
env: TOX_ENV=py27
python: 2.7
- name: Unit tests - Python 3 - name: Unit tests - Python 3
env: TOX_ENV=py3 env: TOX_ENV=py3
- if: commit_message =~ SECURITY_TEST - if: commit_message =~ SECURITY_TEST
@ -40,7 +38,6 @@ addons:
- sourceline: "ppa:deluge-team/develop" - sourceline: "ppa:deluge-team/develop"
- deadsnakes - deadsnakes
packages: packages:
- python-libtorrent
- python3-libtorrent - python3-libtorrent
# Install py36 specifically for pre-commit to run black formatter. # Install py36 specifically for pre-commit to run black formatter.
- python3.6 - python3.6
@ -52,8 +49,7 @@ install:
- pip install tox tox-venv - pip install tox tox-venv
# GTKUI tests # GTKUI tests
- "if [ $TOX_ENV == 'gtkui' ]; then - "if [ $TOX_ENV == 'gtkui' ]; then
sudo apt install python-gi python-gi-cairo python3-gi python3-gi-cairo \ sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0;
gir1.2-gtk-3.0;
fi" fi"
# Security tests # Security tests
- "if [ $TOX_ENV == 'security' ]; then - "if [ $TOX_ENV == 'security' ]; then