File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ trigger :
2+ - master
3+
4+ variables :
5+ miniconda.url : https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
6+
7+ strategy :
8+ matrix :
9+ py37 :
10+ python.version : " 3.7"
11+ py36 :
12+ python.version : " 3.6"
13+
14+ pool :
15+ vmImage : macOS-10.14
16+
17+ steps :
18+ # Add conda to PATH.
19+ - bash : echo "##vso[task.prependpath]$CONDA/bin"
20+ displayName : Add conda to PATH
21+
22+ - script : |
23+ # Install Python, py.test, and required packages.
24+ conda env create -f environment.yml
25+ source activate bayesian-modelling-tutorial
26+ conda install -y python=$(python.version)
27+ python -m ipykernel install --user --name bayesian-modelling-tutorial
28+ displayName : ' Create environment, install correct Python, and activate kernel.'
29+
30+ # Q: Does second script not recognize environment context from 1st script?
31+ - script : |
32+ source activate bayesian-modelling-tutorial
33+ mkdir -p docs/notebooks
34+ jupyter nbconvert --config nbconvert_config.py --execute --template full
35+ pandoc README.md -o docs/index.html -c static/pandoc.css -s
36+ displayName : ' Build docs pages'
You can’t perform that action at this time.
0 commit comments