This repository has been archived by the owner on Jul 13, 2022. It is now read-only.
forked from jupyter/jupyter-sphinx
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jupyter#119 from choldgraf/circleci
adding circleci docs building
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: 2 | ||
jobs: | ||
build_docs: | ||
docker: | ||
- image: circleci/python:3.6-stretch | ||
steps: | ||
# Get our data and merge with upstream | ||
- run: sudo apt-get update | ||
- checkout | ||
|
||
# Install | ||
- run: | ||
name: Installation and docs build | ||
command: | | ||
wget https://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" | ||
source "$HOME"/miniconda/etc/profile.d/conda.sh | ||
conda config --set always_yes yes --set changeps1 no | ||
conda env create -f environment.yml | ||
conda activate jupyter-sphinx | ||
python -m ipykernel install --user --name python3 --display-name "Python3" | ||
pip install --user . | ||
cd doc | ||
make html | ||
- store_artifacts: | ||
path: doc/build/html/ | ||
destination: html | ||
|
||
|
||
workflows: | ||
version: 2 | ||
default: | ||
jobs: | ||
- build_docs |