-
Notifications
You must be signed in to change notification settings - Fork 126
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
restructure storage samples #3113
Conversation
sdk/storage/azure-storage-files-datalake/samples/CMakeLists.txt
Outdated
Show resolved
Hide resolved
/azp run cpp - storage |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Make samples to read from environment for connection string or account name/key
Use the same env-vars defined in the test-resources.json
(update the name in the test-resources.json if required) so we can run samples during nightly CI gates
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# SPDX-License-Identifier: MIT | ||
|
||
cmake_minimum_required (VERSION 3.13) |
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.
nit. Ideally, we might want to have one folder for each sample. Each folder would contain a CMakeList and the source code.
In the future, we want to make then entire folder a copy/paste project with no dependency to the repo.
This works for now and is better than previous approach.
sdk/storage/azure-storage-blobs/samples/blob_getting_started.cpp
Outdated
Show resolved
Hide resolved
sdk/storage/azure-storage-files-datalake/samples/CMakeLists.txt
Outdated
Show resolved
Hide resolved
Co-authored-by: Victor Vazquez <[email protected]>
/azp run cpp - storage |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run cpp - storage |
Azure Pipelines successfully started running 1 pipeline(s). |
@vhvb1989 I just added support for reading from env var. It all looks good to me now. Feel free to hit the merge button to unblock youself. |
Pull Request Checklist
Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:
See the detailed list in the contributing guide.