File tree 4 files changed +46
-33
lines changed
4 files changed +46
-33
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ script:
115
115
- ci/script_single.sh
116
116
- ci/script_multi.sh
117
117
- ci/lint.sh
118
+ - ci/doctests.sh
118
119
- echo "checking imports"
119
120
- source activate pandas && python ci/check_imports.py
120
121
- echo "script done"
Original file line number Diff line number Diff line change 8
8
cd " $TRAVIS_BUILD_DIR "
9
9
echo " inside $0 "
10
10
11
- RET=0
12
-
13
11
if [ " $DOC " ]; then
14
12
15
13
echo " Will build docs"
@@ -52,33 +50,6 @@ if [ "$DOC" ]; then
52
50
git remote -v
53
51
54
52
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
-
82
53
fi
83
54
84
- exit " $RET "
55
+ exit 0
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -7,6 +7,4 @@ echo "inside $0"
7
7
# wait until subprocesses finish (build_docs.sh)
8
8
wait
9
9
10
- RET=" $? "
11
-
12
- exit " $RET "
10
+ exit 0
You can’t perform that action at this time.
0 commit comments