"src/vscode:/vscode.git/clone" did not exist on "85aa673becc4bda8f29c93badcfcde45572aaed3"
Commit 053f0863 authored by Gao, Xiang's avatar Gao, Xiang Committed by Farhad Ramezanghorbani
Browse files

Cleanup files for azure pipelines (#333)

parent 9720a10a
queue:
name: Hosted Ubuntu 1604
timeoutInMinutes: 6000
variables:
python.version: '3.7'
trigger:
batch: true
branches:
include:
- master
pr: none
steps:
- task: UsePythonVersion@0
displayName: 'Use Python $(python.version)'
inputs:
versionSpec: '$(python.version)'
- script: 'git describe --exact-match --tags HEAD'
displayName: 'Fail build on non-release commits'
- script: 'azure/install_dependencies.sh && pip install h5py pytorch-ignite tb-nightly sphinx sphinx_rtd_theme matplotlib pillow sphinx-gallery && pip install .'
displayName: 'Install dependencies'
- script: './download.sh'
displayName: 'Download data files'
- script: 'sphinx-build docs build'
displayName: Build documents
- script: 'mkdir -p ~/.ssh && echo $(deploy_privatekey) | base64 -d > ~/.ssh/id_rsa && chmod 0600 ~/.ssh/id_rsa && echo $(deploy_pubkey) > ~/.ssh/id_rsa.pub'
displayName: Set up deploy keys
- script: 'ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts && git config --global user.email "zasdfgbnm-bot@example.com" && git config --global user.name "zasdfgbnm-bot"'
displayName: Set up github
- script: 'git clone git@github.com:aiqm/torchani.git deploy_dir -b gh-pages'
displayName: Clone gh-pages repository
- script: 'rm -rf deploy_dir/* && cp -r build/* deploy_dir'
displayName: Replace with new files
- script: 'cd deploy_dir && git add . && git commit -m "update" && git push'
displayName: Deploy
queue:
name: Hosted Ubuntu 1604
timeoutInMinutes: 6000
trigger:
batch: true
branches:
include:
- master
pr: none
variables:
python.version: '3.7'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python $(python.version)'
inputs:
versionSpec: '$(python.version)'
- script: 'git describe --exact-match --tags HEAD'
displayName: 'Fail build on non-release commits'
- script: 'azure/install_dependencies.sh && pip install nose coverage twine wheel'
displayName: 'Install dependencies'
- script: './download.sh'
displayName: 'Download data files'
- script: 'python setup.py nosetests'
displayName: Unit tests
- script: 'python setup.py bdist bdist_wheel && twine upload -u $(pypi_username) -p $(pypi_password) dist/*'
displayName: PYPI deploy
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment