File tree 4 files changed +63
-1
lines changed
4 files changed +63
-1
lines changed Original file line number Diff line number Diff line change 8
8
- secure : " TWGKPL4FGtWjCQ427QrSffaQBSCPy1QzPdhtYKAW9AlDo/agdp9RyZRQr8WTlyZ5AOG18X8MDdi0EcpFnyfDNd4thCLyZOntxwltlVV2yNNvnird3XRKUV1F2DD42L64wna04M2KYxpCKhEQ84gEnCH1DGD4g1NnR6fYuEYNSTU="
9
9
- secure : " NvgIWe14pv4SJ5BQhw6J0zIpCTFH4fVpzr9pRzM2tD8yf/3cspX3uyXTt4owiqtjoQ3aQGNnhWtVlmSwlgJrwu7KUaE9IPtlsENYDniAj2oJgejjx02d367pHtMB/9e3+4b2fWUsFNJgWw0ordiIT0p1lzHRdQ9ut4l/Yn/lkJs="
10
10
- secure : " D3ASNRu32pV79lv/Nl0dBm2ldZiTgbb6boOrN0SzIKsQU3yBwedpqX6EI6KjpVg17lGhhhFXGzL2Gz1qjU3/+m6aMvekxHgpfuc0AlEFCEqenWPxIdDDrUkdfJoCvfQQPd5oxChfHgqaEDLjuqHy1ZEgnJ2/L/6dwZ4fUt62hMk="
11
+ # pandas-docs-bot GH
12
+ - secure : " PCzUFR8CHmw9lH84p4ygnojdF7Z8U5h7YfY0RyT+5K/aiQ1ZTU3ZkDTPI0/rR5FVMxsEEKEQKMcc5fvqW0PeD7Q2wRmluloKgT9w4EVEJ1ppKf7lITPcvZR2QgVOvjv4AfDtibLHFNiaSjzoqyJVjM4igjOu8WTlF3JfZcmOQjQ="
11
13
12
14
matrix :
13
15
include :
@@ -30,6 +32,7 @@ matrix:
30
32
- FULL_DEPS=true
31
33
- CLIPBOARD_GUI=gtk2
32
34
- JOB_NAME : " 27_nslow" # ScatterCI Build name, 20 chars max
35
+ - DOC_BUILD=true # if rst files were changed, build docs in parallel with tests
33
36
- python : 3.2
34
37
env :
35
38
- NOSE_ARGS="not slow"
@@ -75,6 +78,7 @@ before_script:
75
78
script :
76
79
- echo "script"
77
80
- ci/script.sh
81
+ - if [ -f /tmp/doc.log ]; then cat /tmp/doc.log; fi
78
82
79
83
after_script :
80
84
- ci/print_versions.py
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+
4
+ cd " $TRAVIS_BUILD_DIR "
5
+
6
+ git show --pretty=" format:" --name-only HEAD~5.. --first-parent | grep -P " rst|txt|doc"
7
+
8
+ if [ " $? " != " 0" ]; then
9
+ echo " Skipping doc build, none were modified"
10
+ # nope, skip docs build
11
+ exit 0
12
+ fi
13
+
14
+
15
+ if [ x" $DOC_BUILD " != x" " ]; then
16
+ # we're running network tests, let's build the docs in the meantim
17
+ echo " Will build docs"
18
+ pip install sphinx==1.1.3 ipython==1.1.0
19
+
20
+ mv " $TRAVIS_BUILD_DIR " /doc /tmp
21
+ cd /tmp/doc
22
+
23
+ rm /tmp/doc/source/api.rst # no R
24
+ rm /tmp/doc/source/r_interface.rst # no R
25
+
26
+ echo # ############################## > /tmp/doc.log
27
+ echo # Log file for the doc build # > /tmp/doc.log
28
+ echo # ############################## > /tmp/doc.log
29
+ echo " " > /tmp/doc.log
30
+ echo -e " y\n" | ./make.py --no-api 2>&1
31
+
32
+ cd /tmp/doc/build/html
33
+ git config --global user.email
" [email protected] "
34
+ git config --global user.name " pandas-docs-bot"
35
+
36
+ git init
37
+ touch README
38
+ git add README
39
+ git commit -m " Initial commit" --allow-empty
40
+ git branch gh-pages
41
+ git checkout gh-pages
42
+ touch .nojekyll
43
+ git add --all .
44
+ git commit -m " Version" --allow-empty
45
+ git remote add origin https://$GH_TOKEN @github.com/pandas-docs/pandas-docs-travis
46
+ git push origin gh-pages -f
47
+ fi
48
+
49
+ exit 0
Original file line number Diff line number Diff line change @@ -98,5 +98,6 @@ export PATH=/usr/lib/ccache:/usr/lib64/ccache:$PATH
98
98
which gcc
99
99
ccache -z
100
100
time pip install $( find dist | grep gz | head -n 1)
101
-
101
+ # restore cython
102
+ time pip install $PIP_ARGS $( cat ci/requirements-${wheel_box} .txt | grep -i cython)
102
103
true
Original file line number Diff line number Diff line change @@ -12,5 +12,13 @@ if [ -n "$LOCALE_OVERRIDE" ]; then
12
12
cd " $curdir "
13
13
fi
14
14
15
+ # conditionally build and upload docs to GH/pandas-docs/pandas-docs/travis
16
+ " $TRAVIS_BUILD_DIR " /ci/build_docs.sh 2>&1 > /tmp/doc.log &
17
+ # doc build log will be shown after tests
18
+
15
19
echo nosetests -v --exe -w /tmp -A " $NOSE_ARGS " pandas --with-xunit --xunit-file=/tmp/nosetests.xml
16
20
nosetests -v --exe -w /tmp -A " $NOSE_ARGS " pandas --with-xunit --xunit-file=/tmp/nosetests.xml
21
+
22
+
23
+ # wait until subprocesses finish (build_docs.sh)
24
+ wait
You can’t perform that action at this time.
0 commit comments