-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
66 lines (65 loc) · 2.05 KB
/
azure-pipelines.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
jobs:
- job: Default
timeoutInMinutes: 60
pool:
vmImage: Ubuntu-16.04
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: conda create --yes --quiet --name kinesis python=3.7 pip
displayName: Create Anaconda environment
- bash: |
source activate kinesis
# may include this to setup.py in the end
pip install pandas
pip install git+https://github.com/smoh/gapipes.git@master
cd $(Build.SourcesDirectory)
pip install -e .
pip freeze | grep -E "astropy|kinesis|pystan|arviz"
displayName: Install dependencies
- bash: |
source activate kinesis
pip install pytest
pytest .
displayName: Run tests
- job: build_and_publish_docs
timeoutInMinutes: 60
pool:
vmImage: Ubuntu-16.04
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: conda create --yes --quiet --name kinesis python=3.7 pip
displayName: Create Anaconda environment
- bash: |
source activate kinesis
# may include this to setup.py in the end
pip install pandas
pip install git+https://github.com/smoh/gapipes.git@master
cd $(Build.SourcesDirectory)
pip install -e .
pip freeze | grep -E "astropy|kinesis|pystan|arviz"
displayName: Install dependencies
- bash: |
pip install sphinx
pip install -U -r docs/requirements.txt
# Additionally needs pandoc and ipython (for syntax highlighting)
conda install -y -c conda-forge pandoc
pip install ipython
displayName: Install docs dependencies
- bash: |
make html
workingDirectory: docs/
displayName: Build html docs
- bash: |
mkdir ghpages
git clone -b gh-pages --single-branch https://github.com/smoh/kinesis-dev.git .
rm -rf .git
mv docs/_build/html/* .
git init
git add -f *
touch .nojekyll
git add .nojekyll
git commit -m 'Build gh-pages'
git push -f https://github.com/smoh/kinesis-dev HEAD:gh-pages
displayName: Push to gh-pages