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

Add Bluemix deploy provider #550

Merged
merged 22 commits into from
Jan 23, 2017
Merged

Add Bluemix deploy provider #550

merged 22 commits into from
Jan 23, 2017

Conversation

adamkingit
Copy link
Contributor

Subclass the cloudfoundry provider to allow users to select bluemix regions by name, without needing to know the api host.

Add unit test coverage, as well as README.md documentation.

Example successful deployment at https://travis-ci.org/adamkingit/dpl/builds/184277695

adamkingit and others added 6 commits December 14, 2016 15:41
Update json version dependency to avoid native code compile issues.

Signed-off-by: Adam King <[email protected]>
.gitignore the coverage/ report directory to avoid accidentally
committing code coverage reports.

Signed-off-by: Adam King <[email protected]>
Add a deployment provider for Bluemix as a subclass of CloudFoundry deploy.
The Bluemix provider uses the same options as Cloudfoundry, with the
addition of a region choice, where setting the region determined the
Bluemix api. Explicitly setting the API overrides the region setting.

Signed-off-by: Adam King <[email protected]>
Add spec class to test Bluemix deploy provider

Signed-off-by: Adam King <[email protected]>
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rspec', '~> 3.0.0'
s.add_development_dependency 'rspec-its'
s.add_development_dependency 'rake'
s.add_development_dependency 'json', '1.8.1'
s.add_development_dependency 'json', '1.8.2'

This comment was marked as spam.

This comment was marked as spam.

@@ -0,0 +1,22 @@
module DPL
class Provider
class BluemixCF < CloudFoundry

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Set dependncy back to JSON 1.8.1 ais required for Ruby 1.9.3 support

Signed-off-by: Adam King <[email protected]>
@adamkingit
Copy link
Contributor Author

Thanks for catching my mistake updating the json dependency. This is the first ruby I have done. I was having trouble with that package on Ubuntu 16, and I obviously chose the wrong solution.

@BanzaiMan
Copy link
Contributor

Cool. Could you work on documentation? It should go to https://github.com/travis-ci/docs-travis-ci-com.

Travis CI and others added 12 commits January 7, 2017 22:01
Update class name, provider reference, and test

Signed-off-by: Travis CI <[email protected]>
Update json version dependency to avoid native code compile issues.

Signed-off-by: Adam King <[email protected]>
.gitignore the coverage/ report directory to avoid accidentally
committing code coverage reports.

Signed-off-by: Adam King <[email protected]>
Add a deployment provider for Bluemix as a subclass of CloudFoundry deploy.
The Bluemix provider uses the same options as Cloudfoundry, with the
addition of a region choice, where setting the region determined the
Bluemix api. Explicitly setting the API overrides the region setting.

Signed-off-by: Adam King <[email protected]>
Add spec class to test Bluemix deploy provider

Signed-off-by: Adam King <[email protected]>
Set dependncy back to JSON 1.8.1 ais required for Ruby 1.9.3 support

Signed-off-by: Adam King <[email protected]>
Update class name, provider reference, and test

Signed-off-by: Travis CI <[email protected]>
@adamkingit
Copy link
Contributor Author

I renamed the class as suggested. I was, and am, getting errors on most environments when travis builds the pull request, but I am not sure how its related to my change. I pulled the latest travis-ci/dpl master onto my fork, but it make a difference.

I also looked at the https://github.com/travis-ci/docs-travis-ci-com documentation, but don't see an obvious area to update. What do you think about a pull request to add a CONTRIBUTING.md to dpl, or did you have something else in mind?

@BanzaiMan
Copy link
Contributor

Hi, @adamkingit, Sorry for the general lack of contribution guidance on docs. The deployment documentation should go to https://github.com/travis-ci/docs-travis-ci-com/tree/gh-pages/user/deployment.

@adamkingit
Copy link
Contributor Author

I updated docs and cli for bluemix and submitted pull requests for:
travis-ci/travis.rb#475
travis-ci/docs-travis-ci-com#925

@adamkingit
Copy link
Contributor Author

Documentation pull request travis-ci/docs-travis-ci-com#925 now merged.

@BanzaiMan BanzaiMan merged commit 27c9c41 into travis-ci:master Jan 23, 2017
@BanzaiMan
Copy link
Contributor

Will release it tomorrow.

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.

2 participants