use travis apt installer
[git-cola.git] / .travis.yml
blob2c825825cd2bd5c148051eea274536f6261891dd
1 # Travis CI(http://travis-ci.org) configuration file
2 language: python
3 python:
4   - "2.7"
5   - "3.4"
6 #  https://docs.travis-ci.com/user/languages/python/
7 #  We use apt to avoid having to build PyQt ourselves, so that means
8 #  we can only use the default python versions available in Ubuntu.
9 #  For Trusty, that's 2.7.6 and 3.4.3.
10 virtualenv:
11   system_site_packages: true
13 addons:
14   apt:
15     packages:
16       # git and python are pre-installed
17       # according to Debian control file from Ubuntu 12.04
18       - rsync
19       - gettext
20       # Runtime dependencies
21       - python-qt4
22       - python3-pyqt5
23       # Build/test dependencies
24       - python-sphinx
25       - python3-sphinx
26       - pylint
28 before_install:
29   # Git test setup
30   - git config --global user.name "Git Cola"
31   - git config --global user.email git-cola@localhost.localdomain
33 install:
34   # Build dependencies
35   - make requirements
36   # Test dependencies
37   - make requirements-dev
39 script:
40   - make all
41   - make test V=2
42   - make doc
43   - pylint --version
44   - test "2.7" != "$TRAVIS_PYTHON_VERSION" || make pylint
45   - make pylint3k
46   - flake8 --version
47   - make flake8