forked from pydata/pydata-sphinx-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (31 loc) · 1.66 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: python
python:
- 3.6
sudo: false
env:
global:
# Doctr deploy key for pandas-dev/pandas-sphinx-theme
- secure: "OIFsDAAZT7VA42JxAq9M2TjWmG02+Z/4uEuRQ8VUm7bOfTw12T17iPxV7a80SPzzS0qKikBskz8MZO5Y8W2rbw7pzUxBuBHYIK/0yOOrRLRhtapqHbiECXS3EntJPIts0/m+X48ijJziNk5oMpENnAKUoQHep0H8cEVXR59mdezjx215c6HzNMVLEvlHKHKKd8Mq1jgTAhBls1zU1UX4IUyIAZw1ul9R42KxAWRMvLx8nVtaGHFZNZIQ+S2HQMLt4llZtjT1UhoceYMUsG+w0XiSPXgilVtZUfqsxIMRB1qvmt8w2dTHkdhXd0mOPS8TySjTeAFPEYQZZt/toMDBX5JzbmBlW6GtD+2JPc6x0af2pVJl6aiodIeAlki9DWoVZtwxMFye+uAXVTrJ19Sfru+NrL0ENOc2Asb8jpSEcwRaJ53uLKTfb06MKt79xWa4b17aTv5e3zFC8MH0Q+aCsj1uTsRxXz8nNcnvYguS5i7r3EDC3rmUrpnp8KafPjBaguxvW5c0smcBXEZpHWVJjs2cUXVUnZYbpDWwho0733oxtMsmjR41EzQy9JADX0MYLL0sLiN6Q7zYt6yRPB60o1TOLWEBnl05YHGCjm7OAtmNbUV3HyslRpZhLZ6i86XJoh97yX7RXtTvPWrJIuBieTC40peEzg/eJZMCbBUHcEw="
install:
# Install conda
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update conda
- conda config --add channels conda-forge
# Install pandas + some optional dependencies
- conda install pandas matplotlib ipython sphinx ipykernel jinja2 numpydoc nbconvert nbsphinx jupyter_client gitpython
# install doctr
- conda install -c conda-forge doctr
script:
- set -e
- pip install -e .
- cd pandas-docs
- python make.py html
- cd ..
- if [[ "${TRAVIS_BRANCH}" == "master" ]]; then
doctr deploy . --built-docs pandas-docs/build/html/;
else
doctr deploy "pr-$TRAVIS_BRANCH" --built-docs pandas-docs/build/html/ --no-require-master;
fi