File tree 1 file changed +56
-0
lines changed
1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ jobs :
3
+ # Define a "build_docs" job to be run with Circle
4
+ build_docs :
5
+ # This is the base environment that Circle will use
6
+ docker :
7
+ - image : circleci/python:3.6-stretch
8
+ steps :
9
+ # Get our data and merge with upstream
10
+ - run : sudo apt-get update
11
+ - checkout
12
+ # Update our path
13
+ - run : echo "export PATH=~/.local/bin:$PATH" >> $BASH_ENV
14
+ # Restore cached files to speed things up
15
+ - restore_cache :
16
+ keys :
17
+ - cache-pip
18
+ # Install the packages needed to build our documentation
19
+ # This will depend on your particular package!
20
+ - run :
21
+ name : Set up environment
22
+ command : |
23
+ # Install conda
24
+ wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
25
+ bash miniconda.sh -b -p $HOME/miniconda
26
+ export PATH="$HOME/miniconda/bin:$PATH"
27
+ conda config --set always_yes yes --set changeps1 no
28
+ conda update conda
29
+ conda config --add channels conda-forge
30
+ # Install pandas + some optional dependencies
31
+ conda install pandas matplotlib ipython sphinx ipykernel jinja2 numpydoc nbconvert nbsphinx jupyter_client gitpython
32
+ # install the theme package
33
+ pip install -e .
34
+ # Cache some files for a speedup in subsequent builds
35
+ - save_cache :
36
+ key : cache-pip
37
+ paths :
38
+ - ~/.cache/pip
39
+ # Build the docs
40
+ - run :
41
+ name : Build docs to store
42
+ command : |
43
+ export PATH="$HOME/miniconda/bin:$PATH"
44
+ cd pandas-docs
45
+ python make.py html
46
+ # Tell Circle to store the documentation output in a folder that we can access later
47
+ - store_artifacts :
48
+ path : pandas-docs/build/html/
49
+ destination : html
50
+
51
+ # Tell CircleCI to use this workflow when it builds the site
52
+ workflows :
53
+ version : 2
54
+ default :
55
+ jobs :
56
+ - build_docs
You can’t perform that action at this time.
0 commit comments