finder: use the background editor
[git-cola.git] / .travis.yml
blob7d1abaeb8fe36f81204bccdabde0fece399fa631
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 # git and python are pre-installed
11 before_install:
12   # Update APT cache data since it may outdated
13   - sudo apt-get -qq update
14   # according to Debian control file from Ubuntu 12.04
15   - sudo apt-get install -y git rsync gettext
16   # Git test setup
17   - git config --global user.name "Git Cola"
18   - git config --global user.email git-cola@localhost.localdomain
20 install:
21   # SIP
22   - mkdir -p local/sandbox
23   - cd local/sandbox
24   - wget "https://src.fedoraproject.org/repo/extras/sip/sip-4.18.1.tar.gz/9d664c33e8d0eabf1238a7ff44a399e9/sip-4.18.1.tar.gz"
25   - tar xzf sip-4.18.1.tar.gz
26   - cd sip-4.18.1
27   - python configure.py --incdir="$(python -c 'import sys; print(sys.prefix)')"/include/python"$PYTHON_VERSION"
28   - make -j4
29   - make install
30   - cd ..
31   # PyQt4
32   - wget "https://src.fedoraproject.org/repo/pkgs/PyQt4/PyQt-x11-gpl-4.11.4.tar.gz/2fe8265b2ae2fc593241c2c84d09d481/PyQt-x11-gpl-4.11.4.tar.gz"
33   - tar xzf PyQt-x11-gpl-4.11.4.tar.gz
34   - cd PyQt-x11-gpl-4.11.4
35   - python configure.py --confirm-license --no-designer-plugin --no-qsci-api --no-timestamp
36   - make -j4
37   - make install
38   - cd ../../..
39   # Pylint
40   - pip install astroid==1.4.3
41   - pip install pylint==1.5.2
42   # Build dependencies
43   - make requirements
44   # Test dependencies
45   - make requirements-dev
47 script:
48   - make all
49   # Sphinx requires Python 3.4
50   - test "2.6" = "$TRAVIS_PYTHON_VERSION" || test "3.3" = "$TRAVIS_PYTHON_VERSION" || make doc
51   # TODO tests currently fail on Python3 due to sip
52   - make test V=2
53   # pylint 1.4 uses python2.7+ syntax so skip pylint on python2.6
54   - test "2.6" = "$TRAVIS_PYTHON_VERSION" || make pylint3k