forked from bpython/bpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (26 loc) · 1.01 KB
/
.travis.yml
File metadata and controls
30 lines (26 loc) · 1.01 KB
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
language: python
sudo: false
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
env:
- RUN=nosetests
- RUN=build_sphinx
install:
- pip install setuptools
# core dependencies
- if [[ $RUN == nosetests ]]; then pip install pygments requests; fi
# curtsies specific dependencies
- if [[ $RUN == nosetests ]]; then pip install 'curtsies >=0.1.16,<0.2.0' greenlet watchdog; fi
# translation specific dependencies
- if [[ $RUN == nosetests ]]; then pip install babel; fi
# documentation specific dependencies
- if [[ $RUN == build_sphinx ]]; then pip install sphinx; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]] && [[ $RUN == nosetests ]]; then pip install unittest2; fi
- if [[ $RUN == nosetests ]]; then python setup.py install; fi
script:
- if [[ $RUN == build_sphinx ]]; then python setup.py build_sphinx; fi
- if [[ $RUN == build_sphinx ]]; then python setup.py build_sphinx_man; fi
- if [[ $RUN == nosetests ]]; then cd build/lib/ && nosetests bpython/test; fi