Skip to content

Commit d2f366b

Browse files
committed
add macOS build
1 parent 6d3cef0 commit d2f366b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.azure-pipelines/macos.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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'

0 commit comments

Comments
 (0)