Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Azure CI for nightly releases #429

Merged
merged 16 commits into from
Jun 26, 2020
14 changes: 7 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# These jobs are triggered automatically and they test code, examples, and wheels.
# Additional checks can be manually triggered
variables:
nightly_release: and(eq(variables['nightly_check'], 'true'), eq(variables['Build.SourceBranch'], 'refs/heads/master'), ne(variables['Build.Reason'], 'PullRequest'))
nightlyRelease: $[and(eq(variables['nightly_check'], true), eq(variables['Build.SourceBranch'], 'refs/heads/master'), ne(variables['Build.Reason'], 'PullRequest'))]

trigger:
- master
@@ -49,7 +49,7 @@ jobs:
set -e
sed -i "s/'giotto-tda'/'giotto-tda-nightly'/1" setup.py
sed -i "s/__version__.*/__version__ = '$(Build.BuildNumber)'/1" gtda/_version.py
condition: eq('True', variables['nightly_release'])
condition: eq(variables.nightlyRelease, true)
displayName: 'Change name to giotto-tda-nightly'

- task: Bash@3
@@ -102,7 +102,7 @@ jobs:
set -e
pip install twine
twine upload -u giotto-learn -p $(pypi_psw) --skip-existing dist/*manylinux2010*.whl
condition: eq('True', variables['nightly_release'])
condition: eq(variables.nightlyRelease, true)
displayName: 'Upload nightly wheels to PyPI'


@@ -131,7 +131,7 @@ jobs:
rm setup.py.bak
sed -i.bak "s/__version__.*/__version__ = '$(Build.BuildNumber)'/1" gtda/_version.py
rm gtda/_version.py.bak
condition: eq('True', variables['nightly_release'])
condition: eq(variables.nightlyRelease, true)
displayName: 'Change name to giotto-tda-nightly'

- task: Cache@2
@@ -218,7 +218,7 @@ jobs:
- bash: |
set -e
twine upload -u giotto-learn -p $(pypi_psw) --skip-existing dist/*
condition: eq('True', variables['nightly_release'])
condition: eq(variables.nightlyRelease, true)
displayName: 'Upload nightly wheels to PyPI'


@@ -246,7 +246,7 @@ jobs:
set -e
sed -i "s/'giotto-tda'/'giotto-tda-nightly'/1" setup.py
sed -i "s/__version__.*/__version__ = '$(Build.BuildNumber)'/1" gtda/_version.py
condition: eq('True', variables['nightly_release'])
condition: eq(variables.nightlyRelease, true)
displayName: 'Change name to giotto-tda-nightly'

# Set BOOST_ROOT_PIPELINE to the version used in the pipeline
@@ -309,5 +309,5 @@ jobs:
set -e
pip install twine
twine upload -u giotto-learn -p $(pypi_psw) --skip-existing dist/*
condition: eq('True', variables['nightly_release'])
condition: eq(variables.nightlyRelease, true)
displayName: 'Upload nightly wheels to PyPI'