forked from ericmjl/bayesian-stats-modelling-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlinux.yml
34 lines (28 loc) · 1021 Bytes
/
linux.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
trigger:
- master
variables:
miniconda.url: https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
strategy:
matrix:
py37:
python.version: "3.7"
pool:
vmImage: ubuntu-16.04
steps:
# Add conda to PATH.
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
# Install Python, py.test, and required packages.
conda env create -f binder/environment.yml
source activate bayesian-modelling-tutorial
conda install -y python=$(python.version)
python -m ipykernel install --user --name bayesian-modelling-tutorial
displayName: 'Create environment, install correct Python, and activate kernel.'
# Q: Does second script not recognize environment context from 1st script?
- script: |
source activate bayesian-modelling-tutorial
mkdir -p docs/notebooks
jupyter nbconvert --config nbconvert_config.py --execute --template full
pandoc README.md -o docs/index.html -c static/pandoc.css -s
displayName: 'Build docs pages'