forked from pylint-dev/astroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (49 loc) · 1.6 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
language: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.3
env: TOXENV=py33
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: pypy
env: TOXENV=pypy
- python: 3.5
env: TOXENV=pylint
- python: 2.7
env: JYTHON=true; TOXENV=jython
before_install:
- if [ "$JYTHON" == "true" ]; then hg clone http://hg.python.org/jython; cd jython; ant; cd ..; chmod +x "$(pwd)/jython/dist/bin/jython"; fi
- if [ "$JYTHON" == "true" ]; then export PYTHON_EXE="$(pwd)/jython/dist/bin/jython"; else export PYTHON_EXE=python; fi
- if [ "$JYTHON" == "true" ]; then alias jython="$(pwd)/jython/dist/bin/jython"; export PATH="$(pwd)/jython/dist/bin:$PATH"; fi
- if [ "$JYTHON" == "true" ]; then wget https://bootstrap.pypa.io/get-pip.py; $PYTHON_EXE get-pip.py; fi
- python --version
- uname -a
- lsb_release -a
install:
- $PYTHON_EXE -m pip install pip -U
- python -m pip install tox
- python -m pip install pip -U
- $PYTHON_EXE -m pip install tox coverage coveralls
- $PYTHON_EXE -m virtualenv --version
- $PYTHON_EXE -m easy_install --version
- $PYTHON_EXE -m pip --version
- $PYTHON_EXE -m tox --version
script:
# Test install with current version of setuptools
- $PYTHON_EXE -m pip install .
# Run the tests with newest version of setuptools
- $PYTHON_EXE -m pip install -U setuptools
- python -m tox -e coverage-erase,$TOXENV
after_success:
- tox -e coveralls
after_failure:
- more .tox/log/* | cat
- more .tox/*/log/* | cat
notifications:
email:
on_success: always
on_failure: always