Skip to content

Commit 0d0d4b4

Browse files
committed
Move install/script code to scripts
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 8693348 commit 0d0d4b4

File tree

3 files changed

+35
-11
lines changed

3 files changed

+35
-11
lines changed

.travis.install.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
set -e
3+
set -x
4+
5+
pip install setuptools
6+
7+
if [[ $RUN == nosetests ]] then
8+
# core dependencies
9+
pip install pygments requests 'curtsies >=0.1.16,<0.2.0' greenlet
10+
# filewatch specific dependencies
11+
pip install watchdog
12+
# translation specific dependencies
13+
pip install babel
14+
# Python 2.6 specific dependencies
15+
if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]] then
16+
pip install unittest
17+
fi
18+
# build and install
19+
python setup.py install
20+
elif [[ $RUN == build_sphinx ]] then
21+
# documentation specific dependencies
22+
pip install sphinx
23+
fi

.travis.script.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
set -e
3+
set -x
4+
5+
if [[ $RUN == build_sphinx ]] then
6+
python setup.py build_sphinx
7+
python setup.py build_sphinx_man
8+
elif [[ $RUN == nosetests ]] then
9+
cd build/lib/
10+
nosetests bpython/test
11+
fi

.travis.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,7 @@ env:
1212
- RUN=build_sphinx
1313

1414
install:
15-
- pip install setuptools
16-
# core dependencies
17-
- if [[ $RUN == nosetests ]]; then pip install pygments requests; fi
18-
# curtsies specific dependencies
19-
- if [[ $RUN == nosetests ]]; then pip install 'curtsies >=0.1.16,<0.2.0' greenlet watchdog; fi
20-
# translation specific dependencies
21-
- if [[ $RUN == nosetests ]]; then pip install babel; fi
22-
# documentation specific dependencies
23-
- if [[ $RUN == build_sphinx ]]; then pip install sphinx; fi
24-
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]] && [[ $RUN == nosetests ]]; then pip install unittest2; fi
25-
- if [[ $RUN == nosetests ]]; then python setup.py install; fi
15+
- ./.travis.install.sh
2616

2717
script:
2818
- if [[ $RUN == build_sphinx ]]; then python setup.py build_sphinx; fi

0 commit comments

Comments
 (0)