File tree Expand file tree Collapse file tree 6 files changed +419
-12
lines changed Expand file tree Collapse file tree 6 files changed +419
-12
lines changed Original file line number Diff line number Diff line change 61
61
62
62
docs /_build /
63
63
docs /_autosummary /
64
+ docs /normal_data.csv
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ addons:
26
26
before_install :
27
27
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
28
28
- chmod +x miniconda.sh
29
- - ./miniconda.sh -b -p $HOME/miniconda
29
+ - ./miniconda.sh -b -f - p $HOME/miniconda
30
30
- export PATH=/home/travis/miniconda/bin:$PATH
31
31
- conda update --yes conda
32
32
@@ -35,14 +35,18 @@ install:
35
35
# TODO(sam): Add --upgrade flag when it works again
36
36
- python3 setup.py install
37
37
38
+ # https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
39
+ # sam: Not exactly sure why we need to initialize a display for this but it
40
+ # helps the tutorial plots build on Travis
41
+ before_script :
42
+ - " export DISPLAY=:99.0"
43
+ - " sh -e /etc/init.d/xvfb start"
44
+ - sleep 3 # give xvfb some time to start
45
+
38
46
script :
39
47
- coverage run setup.py test
40
- - cd docs && make html-raise-on-warning && cd ..
48
+ - make docs
41
49
42
50
after_success :
43
51
- coveralls
44
52
- bash tools/deploy_docs.sh
45
-
46
- cache :
47
- directories :
48
- - /home/travis/virtualenv/python3.4.2/
Original file line number Diff line number Diff line change @@ -52,11 +52,13 @@ clean:
52
52
rm -rf $(BUILDDIR ) /*
53
53
54
54
html :
55
+ mkdir -p $(BUILDDIR ) /html/_images
55
56
$(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
56
57
@echo
57
58
@echo " Build finished. The HTML pages are in $( BUILDDIR) /html."
58
59
59
60
html-raise-on-warning :
61
+ mkdir -p $(BUILDDIR ) /html/_images
60
62
$(SPHINXBUILD ) -W -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
61
63
62
64
dirhtml :
Original file line number Diff line number Diff line change 35
35
'sphinx.ext.autodoc' ,
36
36
'sphinx.ext.autosummary' ,
37
37
'sphinx.ext.viewcode' ,
38
+ # These IPython extensions allow for embedded IPython code that gets rerun
39
+ # at build time.
40
+ 'IPython.sphinxext.ipython_console_highlighting' ,
41
+ 'IPython.sphinxext.ipython_directive'
42
+ ]
43
+
44
+ # The following lines silence the matplotlib.use warnings since we import
45
+ # matplotlib in each ipython directive block
46
+ ipython_mplbackend = None
47
+ ipython_execlines = [
48
+ 'import matplotlib' ,
49
+ 'matplotlib.use("Agg", warn=False)' ,
50
+ 'import numpy as np' ,
51
+ 'import matplotlib.pyplot as plt' ,
52
+ 'plt.style.use("fivethirtyeight")' ,
38
53
]
39
54
40
55
# Config autosummary
147
162
# relative to this directory. They are copied after the builtin static files,
148
163
# so a file named "default.css" will overwrite the builtin "default.css".
149
164
html_static_path = []
165
+ ipython_savefig_dir = './_build/html/_images'
150
166
151
167
# Add any extra paths that contain custom files (such as robots.txt or
152
168
# .htaccess) here, relative to this directory. These files are copied
Original file line number Diff line number Diff line change
1
+ x,y,z
2
+ 1,10,100
3
+ 2,11,101
4
+ 3,12,102
You can’t perform that action at this time.
0 commit comments