-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Upload extension to the Azure blob even if tests fail in master branch #1749
Upload extension to the Azure blob even if tests fail in master branch #1749
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I imagine this is desired behaviours but I wanted to ask some questions surrounding the automation involved.
@@ -115,9 +115,8 @@ script: | |||
python3 -m pip install --upgrade -r news/requirements.txt; | |||
python3 news/announce.py --dry-run; | |||
fi | |||
after_success: | |||
- if [ $AZURE_STORAGE_ACCOUNT ]; then | |||
- if [[ $AZURE_STORAGE_ACCOUNT && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the build fails altogether? As in, what if compilation fails. Would this be possible? What happens then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If compilation fails, then extension is not generated, thus upload fails, i.e. all is good
yarn run clean; | ||
vsce package; | ||
azure storage blob upload --container $AZURE_STORAGE_CONTAINER --blob ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --file python*.vsix --quiet; | ||
azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there only one vsix with this name pattern? Or are we trying to upload multiples?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one, but the name changes with each version.
Fixes #1730
This pull request: