Skip to content

Commit

Permalink
Set up Travis Python 3.4 build environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Apr 5, 2016
1 parent 8ccbd56 commit b4f02dc
Showing 1 changed file with 40 additions and 16 deletions.
56 changes: 40 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,39 @@
language: python
python:
- "2.7_with_system_site_packages"
addons:
apt:
packages:
- python-tk
- libusb-dev
- libusb-1.0-0-dev
- libudev-dev
- python-dbus
- libffi-dev
- liblua5.2-dev
- libjpeg8-dev
- pyqt4-dev-tools
matrix:
include:
- python: "2.7"
virtualenv:
system_site_packages: true
addons:
apt:
packages:
- libusb-dev
- libusb-1.0-0-dev
- libudev-dev
- libffi-dev
- liblua5.2-dev
- libjpeg8-dev
- python-tk
- python-dbus
- pyqt4-dev-tools
- python: "3.4"
addons:
apt:
packages:
- libusb-dev
- libusb-1.0-0-dev
- libudev-dev
- libffi-dev
- liblua5.2-dev
- libjpeg8-dev
- python3-dbus
- python3-pyqt4

before_install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.4" ]]; then
export PYTEST_QT_API=pyqt4 ;
ln -s /usr/lib/python3.2/dist-packages/*dbus* $VIRTUAL_ENV/lib/python$TRAVIS_PYTHON_VERSION/site-packages/ ;
fi
- pip install -U setuptools pytest
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
Expand All @@ -25,6 +45,10 @@ install:
- pip install -r test-requirements.txt
- pip install -e .
script:
- flake8 spreads spreadsplug tests --exclude=vendor
- py.test --cov spreads --cov spreadsplug -m "not guitest" tests
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.4" ]]; then
flake8 spreads --exclude=vendor --ignore=E226,E241,F821 ;
else
flake8 spreads spreadsplug tests --exclude=vendor ;
fi
- if [[ $TRAVIS_PYTHON_VERSION != "3.4" ]]; then py.test --cov spreads --cov spreadsplug -m "not guitest" tests ; fi
after_success: coveralls

0 comments on commit b4f02dc

Please sign in to comment.