travis: organize packages into test, build, and runtime buckets
[git-cola.git] / .travis.yml
blob155e74f931a0ec936df76237acd354655f893789
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       # Build dependencies, not needed at runtime
17       # git and python are pre-installed according to Debian control file from
18       # Ubuntu 12.04.  Install for both python2 and python3 to allow testing
19       # against both versions.  Users only need one variant installed.
20       - gettext
21       - python-sphinx
22       - python3-sphinx
23       - rsync
24       # Runtime dependencies
25       - python-qt4
26       - python3-pyqt5
27       # Test dependencies
28       - pylint
30 before_install:
31   # Git test setup
32   - git config --global user.name "Git Cola"
33   - git config --global user.email git-cola@localhost.localdomain
35 install:
36   # Build dependencies
37   - make requirements
38   # Test dependencies
39   - make requirements-dev
41 script:
42   - make all
43   - make test V=2
44   - make doc
45   - pylint --version
46   # Only run the full pylint tests on python2.7
47   - test "2.7" != "$TRAVIS_PYTHON_VERSION" || make pylint
48   - make pylint3k
49   - flake8 --version
50   - make flake8