forked from git-cola/git-cola
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (50 loc) · 1.71 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Travis CI(http://travis-ci.org) configuration file
language: python
python:
- "2.6"
- "2.7"
# - "3.2" Sphinx depends on Pygments, which only supports Python 3.3+
# - "3.3" dotless pytest not available
- "3.4"
# git and python are pre-installed
before_install:
# Update APT cache data since it may outdated
- sudo apt-get -qq update
# according to Debian control file from Ubuntu 12.04
- sudo apt-get install -y git rsync gettext
# Git test setup
- git config --global user.name "Git Cola"
- git config --global user.email git-cola@localhost.localdomain
install:
# SIP
- mkdir -p local/sandbox
- cd local/sandbox
- wget "https://src.fedoraproject.org/repo/extras/sip/sip-4.18.1.tar.gz/9d664c33e8d0eabf1238a7ff44a399e9/sip-4.18.1.tar.gz"
- tar xzf sip-4.18.1.tar.gz
- cd sip-4.18.1
- python configure.py --incdir="$(python -c 'import sys; print(sys.prefix)')"/include/python"$PYTHON_VERSION"
- make -j4
- make install
- cd ..
# PyQt4
- 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"
- tar xzf PyQt-x11-gpl-4.11.4.tar.gz
- cd PyQt-x11-gpl-4.11.4
- python configure.py --confirm-license --no-designer-plugin --no-qsci-api --no-timestamp
- make -j4
- make install
- cd ../../..
# Pylint
- pip install astroid==1.4.3
- pip install pylint==1.5.2
# Build dependencies
- make requirements
# Test dependencies
- make requirements-dev
script:
- make all
# Sphinx requires Python 2.7 or 3.4+
- test "2.6" = "$TRAVIS_PYTHON_VERSION" || make doc
- make test V=2
# pylint 1.4 uses python2.7+ syntax so skip pylint on python2.6
- test "2.6" = "$TRAVIS_PYTHON_VERSION" || make pylint3k