prefs: add a Defaults class for holding hard-coded defaults
[git-cola.git] / .travis.yml
blob73b0ff413af5502d231221a7036808111ae08cdc
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 # git and python are pre-installed
14 before_install:
15   # Update APT cache data since it may outdated
16   - sudo apt-get -qq update
17   # according to Debian control file from Ubuntu 12.04
18   - sudo apt-get install -y git rsync gettext
19   # Runtime dependencies
20   - sudo apt-get install -y python-qt4
21   - sudo apt-get install -y python3-pyqt5
22   # Build/test dependencies
23   - sudo apt-get install -y python-sphinx python3-sphinx
24   - sudo apt-get install -y pylint
25   # Git test setup
26   - git config --global user.name "Git Cola"
27   - git config --global user.email git-cola@localhost.localdomain
29 install:
30   # Build dependencies
31   - make requirements
32   # Test dependencies
33   - make requirements-dev
35 script:
36   - make all
37   - make test V=2
38   - make doc
39   - pylint --version
40   - test "2.7" != "$TRAVIS_PYTHON_VERSION" || make pylint
41   - make pylint3k
42   - flake8 --version
43   - make flake8