Skip to content

Commit 5caf04b

Browse files
move to separate file
1 parent 67f4ae8 commit 5caf04b

File tree

4 files changed

+46
-33
lines changed

4 files changed

+46
-33
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ script:
115115
- ci/script_single.sh
116116
- ci/script_multi.sh
117117
- ci/lint.sh
118+
- ci/doctests.sh
118119
- echo "checking imports"
119120
- source activate pandas && python ci/check_imports.py
120121
- echo "script done"

ci/build_docs.sh

+1-30
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ fi
88
cd "$TRAVIS_BUILD_DIR"
99
echo "inside $0"
1010

11-
RET=0
12-
1311
if [ "$DOC" ]; then
1412

1513
echo "Will build docs"
@@ -52,33 +50,6 @@ if [ "$DOC" ]; then
5250
git remote -v
5351

5452
git push origin gh-pages -f
55-
56-
echo "Running doctests"
57-
cd "$TRAVIS_BUILD_DIR"
58-
pytest --doctest-modules \
59-
pandas/core/reshape/concat.py \
60-
pandas/core/reshape/pivot.py \
61-
pandas/core/reshape/reshape.py \
62-
pandas/core/reshape/tile.py
63-
64-
if [ $? -ne "0" ]; then
65-
RET=1
66-
fi
67-
68-
# DataFrame docstrings
69-
pytest --doctest-modules pandas/core/series.py -k"-agg -apply -applymap -assign -eval -isin -itertuples -join -merge -nlargest -nsmallest -nunique -pivot -pivot_table -quantile -query -reindex -reindex_axis -replace -round -select_dtypes -set_index -stack -to_dict -to_excel -to_stata"
70-
71-
if [ $? -ne "0" ]; then
72-
RET=1
73-
fi
74-
75-
# Series docstrings
76-
pytest --doctest-modules pandas/core/series.py -k"-agg -apply -map -nlargest -nonzero -nsmallest -reindex -replace -searchsorted -sort_values -to_dict -to_excel"
77-
78-
if [ $? -ne "0" ]; then
79-
RET=1
80-
fi
81-
8253
fi
8354

84-
exit "$RET"
55+
exit 0

ci/doctests.sh

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
echo "inside $0"
4+
5+
6+
source activate pandas
7+
cd "$TRAVIS_BUILD_DIR"
8+
9+
RET=0
10+
11+
if [ "$LINT" ]; then
12+
13+
echo "Running doctests"
14+
15+
pytest --doctest-modules \
16+
pandas/core/reshape/concat.py \
17+
pandas/core/reshape/pivot.py \
18+
pandas/core/reshape/reshape.py \
19+
pandas/core/reshape/tile.py -v
20+
21+
if [ $? -ne "0" ]; then
22+
RET=1
23+
fi
24+
25+
# DataFrame docstrings
26+
pytest --doctest-modules pandas/core/frame.py -k"-agg -apply -applymap -assign -eval -isin -itertuples -join -merge -nlargest -nsmallest -nunique -pivot -pivot_table -quantile -query -reindex -reindex_axis -replace -round -select_dtypes -set_index -stack -to_dict -to_excel -to_stata" -v
27+
28+
if [ $? -ne "0" ]; then
29+
RET=1
30+
fi
31+
32+
# Series docstrings
33+
pytest --doctest-modules pandas/core/series.py -k"-agg -apply -map -nlargest -nonzero -nsmallest -reindex -replace -searchsorted -sort_values -to_dict -to_excel" -v
34+
35+
if [ $? -ne "0" ]; then
36+
RET=1
37+
fi
38+
39+
else
40+
echo "NOT running doctests"
41+
fi
42+
43+
exit $RET

ci/run_build_docs.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ echo "inside $0"
77
# wait until subprocesses finish (build_docs.sh)
88
wait
99

10-
RET="$?"
11-
12-
exit "$RET"
10+
exit 0

0 commit comments

Comments
 (0)