Skip to content

Commit 6d2574c

Browse files
committed
Split tests and doc build
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at> Fix syntax errors Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent a8701a5 commit 6d2574c

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.travis.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,24 @@ python:
66
- "3.3"
77
- "3.4"
88

9+
env:
10+
- RUN=nosetests
11+
- RUN=build_sphinx
12+
913
install:
1014
- pip install setuptools
1115
# core dependencies
12-
- pip install pygments requests
16+
- if [[ $RUN == nosetests ]]; then pip install pygments requests; fi
1317
# curtsies specific dependencies
14-
- pip install 'curtsies >=0.1.15,<0.2.0' greenlet
18+
- if [[ $RUN == nosetests ]]; then pip install 'curtsies >=0.1.15,<0.2.0' greenlet; fi
1519
# translation specific dependencies
16-
- pip install babel
20+
- if [[ $RUN == nosetests ]]; then pip install babel; fi
1721
# documentation specific dependencies
18-
- pip install sphinx
19-
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
20-
- python setup.py install
22+
- if [[ $RUN == build_sphinx ]]; then pip install sphinx; fi
23+
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]] && [[ $RUN == nosetests ]]; then pip install unittest2; fi
24+
- if [[ $RUN == nosetests ]]; then python setup.py install; fi
2125

2226
script:
23-
- python setup.py build_sphinx
24-
- cd build/lib/
25-
- nosetests bpython/test
27+
- if [[ $RUN == build_sphinx ]]; then python setup.py build_sphinx; fi
28+
- if [[ $RUN == build_sphinx ]]; then python setup.py build_sphinx_man; fi
29+
- if [[ $RUN == nosetests ]]; then cd build/lib/ && nosetests bpython/test; fi

0 commit comments

Comments
 (0)