forked from mdtraj/mdtraj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
35 lines (31 loc) · 1.13 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
stages:
- stage: Test
jobs:
- template: ./devtools/azure-pipelines-linux.yml
- template: ./devtools/azure-pipelines-osx.yml
- template: ./devtools/azure-pipelines-win.yml
- stage: DocDeploy
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master'))
variables:
CCACHE_DIR: $(Pipeline.Workspace)/ccache
jobs:
- job:
steps:
- bash: |
sudo apt-get install ccache -y
echo "##vso[task.prependpath]/usr/lib/ccache"
displayName: Install ccache and update PATH to use linked versions of gcc, cc, etc
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- bash: devtools/travis-ci/build_docs.sh
displayName: 'Build docs'
continueOnError: false
- bash: |
echo "Deploy docs"
aws configure list
python devtools/travis-ci/set_doc_version.py
find docs/_deploy
aws s3 sync docs/_deploy/ s3://mdtraj
env:
AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID)
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)