Skip to content

Conversation

@joshmarsh
Copy link
Contributor

@joshmarsh joshmarsh commented Oct 18, 2019

Added an azure devops pipeline that runs tests and creates github draft releases when you push a git tag.

@joshmarsh
Copy link
Contributor Author

/azp list

@azure-pipelines
Copy link

CI/CD Pipelines for this repository:

tagSource: 'auto'
gitHubConnection: Github
repositoryName: Optum/dce-cli
isDraft: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joshmarsh -- go ahead and disable the draft behavior, so we can test this out.

No one is using this tool yet, so feel free to create/destroy tags and releases as needed to test it out. Let's just make sure it's all cleaned up when we merge the PR

- script: |
set -x
apt-get update
apt-get install zip -y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ubuntu doesn't have zip installed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, leftover from when I was debugging dependency issues in a container.


func TestAWSUtil(t *testing.T) {

t.Run("UploadDirectoryToS3 should upload an entire directory to S3", func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get rid of this test file? Looks like it doesn't really do anything

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to have at least one test file in this PR, as it's part of validating that the module can be built and tested. I can rename it to be generic if you'd like, though I'm just going to fill it in with actual tests for the AWSUtil in my next PR.

@eschwartz
Copy link
Contributor

@joshmarsh -- this looks good. I'd just like to see this working end-to-end before we merge (ie, create a tagged release in Github)

@joshmarsh
Copy link
Contributor Author

@joshmarsh -- this looks good. I'd just like to see this working end-to-end before we merge (ie, create a tagged release in Github)

https://github.com/Optum/dce-cli/releases/tag/v0.0.0

@eschwartz
Copy link
Contributor

image
sweet

Copy link
Contributor

@eschwartz eschwartz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work!

@joshmarsh joshmarsh merged commit 6863b75 into master Oct 22, 2019
@joshmarsh joshmarsh deleted the feature/pipeline branch October 22, 2019 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants