about: apply flake8 suggestions
[git-cola.git] / .travis.yml
blobc963559146c28d320d29ccf09c6578269988a746
1 # Travis CI(http://travis-ci.org) configuration file
2 language: python
3 python:
4   - "2.6"
5   - "2.7"
6 #  - "3.2" Sphinx depends on Pygments, which only supports Python 3.3+
7   - "3.3"
8   - "3.4"
10 before_install:
11   # Update APT cache data since it may outdated
12   - sudo apt-get -qq update
13   # according to Debian control file from Ubuntu 12.04
14   - sudo apt-get install -y git rsync gettext
15   # Git test setup
16   - git config --global user.name "Git Cola"
17   - git config --global user.email git-cola@localhost.localdomain
19 # command to install dependencies, git and python are pre-installed in build box thus are ignored
20 install:
21   - pip install sphinx
22   # SIP
23   - mkdir -p local/sandbox
24   - cd local/sandbox
25   - wget "http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.5/sip-4.16.5.tar.gz"
26   - tar xzf sip-4.16.5.tar.gz
27   - cd sip-4.16.5
28   - python configure.py --incdir="$(python -c 'import sys; print(sys.prefix)')"/include/python"$PYTHON_VERSION"
29   - make -j4
30   - make install
31   - cd ..
32   # PyQt4
33   - wget "http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt-x11-gpl-4.11.3.tar.gz"
34   - tar xzf PyQt-x11-gpl-4.11.3.tar.gz
35   - cd PyQt-x11-gpl-4.11.3
36   - python configure.py --confirm-license --no-designer-plugin --no-qsci-api --no-timestamp
37   - make -j4
38   - make install
39   - cd ../../..
40   # Additional dependency for python 2.6
41   - pip install argparse
42   # Test dependencies
43   - pip install mock
44   # Pylint
45   - pip install astroid==1.4.3
46   - pip install pylint==1.5.2
48 script:
49   - make all
50   - make doc
51   # TODO tests currently fail on Python3 due to sip
52   - env GIT_COLA_NO_HISTORY=1 make test flags=--verbose
53   # pylint 1.4 uses python2.7+ syntax so skip pylint on python2.6
54   - test "2.6" = "$TRAVIS_PYTHON_VERSION" || make pylint