dpl-thib 1.10.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.github/CONTRIBUTING.md +173 -0
  4. data/.github/stale.yml +53 -0
  5. data/.gitignore +13 -0
  6. data/.rspec +2 -0
  7. data/.travis.yml +55 -0
  8. data/CODE_OF_CONDUCT.md +74 -0
  9. data/Gemfile +5 -0
  10. data/LICENSE +22 -0
  11. data/README.md +968 -0
  12. data/Rakefile +208 -0
  13. data/bin/dpl +5 -0
  14. data/dpl-anynines.gemspec +3 -0
  15. data/dpl-atlas.gemspec +3 -0
  16. data/dpl-azure_webapps.gemspec +3 -0
  17. data/dpl-bintray.gemspec +3 -0
  18. data/dpl-bitballoon.gemspec +3 -0
  19. data/dpl-bluemix_cloud_foundry.gemspec +3 -0
  20. data/dpl-boxfuse.gemspec +3 -0
  21. data/dpl-cargo.gemspec +3 -0
  22. data/dpl-catalyze.gemspec +3 -0
  23. data/dpl-chef_supermarket.gemspec +10 -0
  24. data/dpl-cloud66.gemspec +3 -0
  25. data/dpl-cloud_files.gemspec +3 -0
  26. data/dpl-cloud_foundry.gemspec +3 -0
  27. data/dpl-code_deploy.gemspec +3 -0
  28. data/dpl-deis.gemspec +3 -0
  29. data/dpl-elastic_beanstalk.gemspec +3 -0
  30. data/dpl-engine_yard.gemspec +3 -0
  31. data/dpl-firebase.gemspec +3 -0
  32. data/dpl-gae.gemspec +3 -0
  33. data/dpl-gcs.gemspec +3 -0
  34. data/dpl-hackage.gemspec +3 -0
  35. data/dpl-hephy.gemspec +3 -0
  36. data/dpl-heroku.gemspec +3 -0
  37. data/dpl-lambda.gemspec +3 -0
  38. data/dpl-launchpad.gemspec +3 -0
  39. data/dpl-npm.gemspec +3 -0
  40. data/dpl-openshift.gemspec +3 -0
  41. data/dpl-ops_works.gemspec +3 -0
  42. data/dpl-packagecloud.gemspec +3 -0
  43. data/dpl-pages.gemspec +3 -0
  44. data/dpl-puppet_forge.gemspec +3 -0
  45. data/dpl-pypi.gemspec +3 -0
  46. data/dpl-releases.gemspec +3 -0
  47. data/dpl-rubygems.gemspec +3 -0
  48. data/dpl-s3.gemspec +3 -0
  49. data/dpl-scalingo.gemspec +3 -0
  50. data/dpl-script.gemspec +3 -0
  51. data/dpl-snap.gemspec +3 -0
  52. data/dpl-surge.gemspec +3 -0
  53. data/dpl-testfairy.gemspec +3 -0
  54. data/dpl-transifex.gemspec +3 -0
  55. data/dpl.gemspec +3 -0
  56. data/gemspec_helper.rb +51 -0
  57. data/lib/dpl/cli.rb +66 -0
  58. data/lib/dpl/error.rb +3 -0
  59. data/lib/dpl/provider.rb +308 -0
  60. data/lib/dpl/version.rb +3 -0
  61. data/notes/engine_yard.md +1 -0
  62. data/notes/heroku.md +3 -0
  63. data/spec/cli_spec.rb +36 -0
  64. data/spec/provider_spec.rb +191 -0
  65. data/spec/spec_helper.rb +20 -0
  66. metadata +237 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 293295e9f71f117fc8bf17949baa59725b3566d897902714fe724de79c448082
4
+ data.tar.gz: 8a392613b5f964fdee841c2033177a44d3068f0e5391b7535f11e681e15f6af1
5
+ SHA512:
6
+ metadata.gz: ee1b16f5fe17136e0f67bf6ca389d772ed875c40095d029a7be14e90af4bbcbb5b564f6d1aa8bd8c6d44b6db7922d0fd58360ab1dea1a8607f2d26a163501017
7
+ data.tar.gz: '0571699c1214d77444efca90150e3954209f80479d363054877c043d13500558fa1ff5d9d41aac4ecda2873500f64199a28fc5f70da5d936e21a105cbb7eec1f'
@@ -0,0 +1 @@
1
+ service_name: travis-ci
@@ -0,0 +1,173 @@
1
+ # Writing a new deployment provider
2
+
3
+ So you want to add a new deployment provider,
4
+ fix a bug, or add a new feature to an
5
+ existing provider.
6
+
7
+ That's great.
8
+
9
+ This document explains what you need to know in order
10
+ to accomplish the goal.
11
+
12
+ `dpl` is written in Ruby, and we assume that you have
13
+ a good understanding of how it works.
14
+
15
+ ## General structure of the `dpl` code base
16
+
17
+ ### `lib/dpl/provider`
18
+
19
+ Each provider code is a subclass of `DPL::Provider`,
20
+ and it lives under `lib/dpl/provider`.
21
+
22
+ ```
23
+ lib
24
+ └── dpl
25
+ ├── cli.rb
26
+ ├── error.rb
27
+ ├── provider
28
+ │   ├── anynines.rb
29
+ │   ├── atlas.rb
30
+ │   ├── azure_webapps.rb
31
+ │   ├── bintray.rb
32
+ │   ├── bitballoon.rb
33
+ │   ├── ⋮
34
+ ```
35
+
36
+ `dpl` script will receive the provider name via `--provider`
37
+ command-line option; e.g.,
38
+
39
+ dpl --provider=script …
40
+
41
+ and attempts to load it at run time.
42
+
43
+ In order to make `dpl` be aware of a provider code, put the provider
44
+ code in `lib/dpl/provider` and add a key-value pair to the `DPL::Provider::GEM_NAME_OF`
45
+ hash in `lib/dpl/provider.rb`.
46
+
47
+ For example:
48
+
49
+ ```ruby
50
+ module DPL
51
+ class Provider
52
+ GEM_NAME_OF = {
53
+ 'NewProvider' => 'new_provider',
54
+ }
55
+ end
56
+ end
57
+ ```
58
+
59
+ There is no standard for how the key and value are defined, but
60
+ we generally recommend adhering to the snake-case naming;
61
+ e.g., for the `CloudFoundry` class, the file (and the gem name) is
62
+ `cloud_foundry`.
63
+ (Please note that some existing provider codes violate this guideline.)
64
+
65
+ #### Basic structure of the provider code
66
+
67
+ When `dpl` loads the provider code, first it sets up dependencies
68
+ (install `apt` packages, `npm` modules, etc.).
69
+
70
+ Then the following methods on the provider code are invoked:
71
+
72
+ 1. `#check_auth`: sets up (and ideally verifies) user credentials
73
+ 1. `#check_app`: verify that the application is valid
74
+ 1. `#push_app`: deploy the code
75
+
76
+ If you are trying to implement support for a new provider and this basic
77
+ flow does not suit your needs, be sure to seek help/advice.
78
+
79
+ ### `spec/provider`
80
+
81
+ `dpl` uses [RSpec](https://github.com/rspec) for tests.
82
+ The specs reside in `spec/provider`, and each provider has the corresponding
83
+ `*_spec.rb` file to hold specs.
84
+
85
+ ## Testing new code locally
86
+
87
+ To test it locally, first you need to write a corresponding `dpl-*.gemspec` file.
88
+ You can write this file from scratch, or use the `gemspec_for` helper
89
+ method, found in `gemspec_helper.rb`.
90
+ We recommend the helper to ensure consistency.
91
+ The important thing is that your new gem has a good runtime dependency, most
92
+ notably on `dpl`.
93
+
94
+ Once you have `dpl-*.gemspec`, you are ready to run specs. To do this,
95
+ call `spec-*` Rake task.
96
+
97
+ > This task (and others) are dynamically inferred from the presence of `dpl-*.gemspec`,
98
+ > so there is no need for you to touch `Rakefile`.
99
+
100
+ This Rake task builds and installs `dpl` and the provider gem from the local source,
101
+ installs dependencies and runs the specs in `spec/provider/*_spec.rb`.
102
+ For example, to run specs on the `s3` provider:
103
+
104
+ $ bundle install
105
+ $ rake spec-s3
106
+
107
+ If you have other versions of `dpl` and `dpl-*` gems before running the Rake task,
108
+ they may interfere with your tests.
109
+
110
+ If you suspect this interference, be sure to uninstall them by
111
+
112
+ $ gem uninstall -aIx dpl dpl-* # for appropriate provider(s)
113
+
114
+ or
115
+
116
+ $ rake clean
117
+
118
+ to completely clean up the working directory.
119
+
120
+ ### Testing a portion of specs
121
+
122
+ The `spec-*` Rake tasks take an optional argument, which is passed on
123
+ to `rspec` to indicate which lines to execute.
124
+
125
+ For example:
126
+
127
+ $ rake spec-s3["55"]
128
+
129
+ ### Avoid making actual network calls
130
+
131
+ Deployment code often interact with external services to do the job.
132
+ It is tempting to make calls to external servers during the specs,
133
+ but resist this temptation.
134
+ Instead, mock the network calls and write specs that deal with different results.
135
+ Assuming that the external resources are stable in their behavior,
136
+ this will make the specs less susceptible to network issues.
137
+
138
+ # Testing `dpl` in the context of Travis CI builds
139
+
140
+ It is possible to test new deployment provider or new functionality
141
+ of dpl when it is used from the Travis CI build script.
142
+
143
+ To do so, add the following to your `.travis.yml`:
144
+
145
+ ```yaml
146
+ deploy:
147
+ provider: X
148
+ edge:
149
+ source: myown/dpl
150
+ branch: foo
151
+ on:
152
+ branch: TEST_BRANCH # or all_branches: true
153
+ ⋮ # rest of provider X configuration
154
+ ```
155
+
156
+ This builds the `dpl` gem on the VM
157
+ from `https://github.com/myown/dpl`, the `foo` branch.
158
+ Then it installs the locally built gem,
159
+ and uses that to deploy.
160
+
161
+ Notice that this is not a merge commit, so it is important
162
+ that when you are testing your PR, the branch `foo` is up-to-date
163
+ with https://github.com/travis-ci/dpl/tree/master/.
164
+
165
+ When opening a PR, be sure to run at least one deployment with the new configuration,
166
+ and provide a link to the build in the PR.
167
+
168
+ ## Automatic closure of old issues
169
+
170
+ If an issue has been left open and untouched for 90 days or more, we automatically
171
+ close them. We do this to ensure that new issues are more easily noticeable, and
172
+ that old issues that have been resolved or are no longer relevant are closed.
173
+ You can read more about this [here](https://blog.travis-ci.com/2018-03-09-closing-old-issues).
@@ -0,0 +1,53 @@
1
+ # Configuration for probot-stale - https://github.com/probot/stale
2
+
3
+ # Number of days of inactivity before an Issue or Pull Request becomes stale
4
+ daysUntilStale: 90
5
+
6
+ # Number of days of inactivity before a stale Issue or Pull Request is closed.
7
+ # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8
+ daysUntilClose: 1
9
+
10
+ # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
11
+ exemptLabels:
12
+ - WIP
13
+ - work in progress
14
+ - important
15
+ - locked
16
+
17
+ # Set to true to ignore issues in a project (defaults to false)
18
+ exemptProjects: false
19
+
20
+ # Set to true to ignore issues in a milestone (defaults to false)
21
+ exemptMilestones: false
22
+
23
+ # Label to use when marking as stale
24
+ staleLabel: stale
25
+
26
+ # Comment to post when marking as stale. Set to `false` to disable
27
+ markComment: >
28
+ Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues
29
+ # Comment to post when removing the stale label.
30
+ # unmarkComment: >
31
+ # Your comment here.
32
+
33
+ # Comment to post when closing a stale Issue or Pull Request.
34
+ #closeComment: >
35
+ # Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues
36
+
37
+ # Limit the number of actions per hour, from 1-30. Default is 30
38
+ limitPerRun: 30
39
+
40
+ # Limit to only `issues` or `pulls`
41
+ only: issues
42
+
43
+ # Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
44
+ # pulls:
45
+ # daysUntilStale: 30
46
+ # markComment: >
47
+ # This pull request has been automatically marked as stale because it has not had
48
+ # recent activity. It will be closed if no further activity occurs. Thank you
49
+ # for your contributions.
50
+
51
+ # issues:
52
+ # exemptLabels:
53
+ # - confirmed
@@ -0,0 +1,13 @@
1
+ Gemfile-*
2
+ Gemfile.lock
3
+ .bundle
4
+ .coverage
5
+ coverage
6
+ .dpl
7
+ setuptools*.zip
8
+ google_appengine_*.zip
9
+ google_appengine/*
10
+ npm-debug.log
11
+ *.gem
12
+ stubs
13
+ vendor
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --tty
@@ -0,0 +1,55 @@
1
+ language: ruby
2
+ rvm:
3
+ - "2.2.9"
4
+ - "2.3.6"
5
+ - "2.4"
6
+ - "2.5.3"
7
+
8
+ jobs:
9
+ include:
10
+ - stage: deploy
11
+ cache: false
12
+ before_deploy:
13
+ - sed -i.bak "s/VERSION = '.*'/VERSION = '${DPL_VERSION}'/g" lib/dpl/version.rb
14
+ - git config user.name "travisbot"
15
+ - git config user.email "deploy@travis-ci.org"
16
+ - git add lib/dpl/version.rb
17
+ - git commit -m "Update DPL::Version"
18
+ deploy:
19
+ - provider: rubygems
20
+ script: skip
21
+ edge:
22
+ branch: master
23
+ api_key:
24
+ secure: ZmZoDL1tilWvQrqRWDm2K4xQ5Grt9eRJzYVZPLANR0P1TM5BJBLk+UhWCWCPkkDVIBWMa5ANsiFYBxtH65Lw+uqMztSpVusk0l0LQXZGv9jMpT9445A8008U3vvfS0ke7IG8Q4bMAC7Sd6VGaiHDyZC7zmNvnqMpmVX7ShcgBME=
25
+ gem: dpl
26
+ gemspec_glob: 'dpl*.gemspec'
27
+ on:
28
+ repo: travis-ci/dpl
29
+ if: branch = master AND NOT type IN (pull_request)
30
+ allow_failures:
31
+
32
+ env:
33
+ global:
34
+ - DPL_VERSION=$(ruby -I lib -r dpl/version.rb -e "puts DPL::VERSION.succ + \".travis.#{ENV['TRAVIS_JOB_NUMBER']}\"")
35
+
36
+ sudo: false
37
+
38
+ before_cache:
39
+ - rm -rf $GEM_HOME/cache/dpl-*.travis.*.gem $GEM_HOME/gems/dpl-*.travis.* $GEM_HOME/specifications/dpl-*.travis.*
40
+ - git checkout bin/dpl
41
+
42
+ cache:
43
+ directories:
44
+ - vendor/cache
45
+ - $GEM_HOME
46
+ - node_modules
47
+
48
+ before_install:
49
+ - gem update bundler
50
+
51
+ before_script:
52
+ - rm -f $(ruby -r rubygems -e "puts Gem.bindir")/dpl
53
+
54
+ script:
55
+ - rake
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, other beliefs, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Being constructive and proportionate when criticizing
20
+ * Gracefully accepting constructive criticism
21
+ * Focusing on what is best for the community
22
+ * Showing empathy towards other community members
23
+
24
+ Examples of unacceptable behavior by participants include:
25
+
26
+ * The use of sexualized language or imagery and unwelcome sexual attention or
27
+ advances
28
+ * Trolling, insulting/derogatory comments, and personal or political attacks
29
+ * Public or private harassment
30
+ * Publishing others' private information, such as a physical or electronic
31
+ address, without explicit permission
32
+ * Other conduct which could reasonably be considered inappropriate in a
33
+ professional setting
34
+
35
+ ## Our Responsibilities
36
+
37
+ Project maintainers are responsible for clarifying the standards of acceptable
38
+ behavior and are expected to take appropriate and fair corrective action in
39
+ response to any instances of unacceptable behavior.
40
+
41
+ Project maintainers have the right and responsibility to remove, edit, or
42
+ reject comments, commits, code, wiki edits, issues, and other contributions
43
+ that are not aligned to this Code of Conduct, or to ban temporarily or
44
+ permanently any contributor for other behaviors that they deem inappropriate,
45
+ threatening, offensive, or harmful.
46
+
47
+ ## Scope
48
+
49
+ This Code of Conduct applies both within project spaces and in public spaces
50
+ when an individual is representing the project or its community. Examples of
51
+ representing a project or community include using an official project e-mail
52
+ address, posting via an official social media account, or acting as an appointed
53
+ representative at an online or offline event. Representation of a project may be
54
+ further defined and clarified by project maintainers.
55
+
56
+ ## Enforcement
57
+
58
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
59
+ reported by contacting the project team at the following email address: conduct@travis-ci.org. All
60
+ complaints will be reviewed and investigated and will result in a response that
61
+ is deemed necessary and appropriate to the circumstances. The project team is
62
+ obligated to maintain confidentiality with regard to the reporter of an incident.
63
+ Further details of specific enforcement policies may be posted separately.
64
+
65
+ Project maintainers who do not follow or enforce the Code of Conduct in good
66
+ faith may face temporary or permanent repercussions as determined by other
67
+ members of the project's leadership.
68
+
69
+ ## Attribution
70
+
71
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
72
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
73
+
74
+ [homepage]: https://www.contributor-covenant.org
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+ ruby '> 2.1' # 2.2 and up
3
+ gemspec :name => 'dpl'
4
+
5
+ gem 'term-ansicolor'
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Konstantin Haase
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,968 @@
1
+ # Dpl [![Build Status](https://travis-ci.org/travis-ci/dpl.svg?branch=master)](https://travis-ci.org/travis-ci/dpl) [![Code Climate](https://codeclimate.com/github/travis-ci/dpl.png)](https://codeclimate.com/github/travis-ci/dpl) [![Gem Version](https://badge.fury.io/rb/dpl.png)](http://badge.fury.io/rb/dpl) [![Coverage Status](https://coveralls.io/repos/travis-ci/dpl/badge.svg?branch=master&service=github)](https://coveralls.io/github/travis-ci/dpl?branch=master)
2
+
3
+ ## Writing and Testing a New Deployment Provider and new functionality
4
+
5
+ See [CONTRIBUTING.md](.github/CONTRIBUTING.md).
6
+
7
+ ## Supported Providers:
8
+ Dpl supports the following providers:
9
+
10
+ * [Anynines](#anynines)
11
+ * [Atlas by HashiCorp](#atlas)
12
+ * [AWS CodeDeploy](#aws-codedeploy)
13
+ * [AWS Elastic Beanstalk](#elastic-beanstalk)
14
+ * [AWS OpsWorks](#opsworks)
15
+ * [AWS S3](#s3)
16
+ * [Azure Web Apps](#azure-web-apps)
17
+ * [Bintray](#bintray)
18
+ * [BitBalloon](#bitballoon)
19
+ * [Bluemix Cloud Foundry](#bluemix-cloud-foundry)
20
+ * [Boxfuse](#boxfuse)
21
+ * [cargo](#cargo)
22
+ * [Catalyze](#catalyze)
23
+ * [Chef Supermarket](#chef-supermarket)
24
+ * [Cloud 66](#cloud-66)
25
+ * [Cloud Foundry](#cloud-foundry)
26
+ * [Deis](#deis)
27
+ * [Engine Yard](#engine-yard)
28
+ * [Firebase](#firebase)
29
+ * [Github Pages](#github-pages)
30
+ * [Github Releases](#github-releases)
31
+ * [Google App Engine (experimental)](#google-app-engine)
32
+ * [Google Cloud Storage](#google-cloud-storage)
33
+ * [Hackage](#hackage)
34
+ * [Hephy](#hephy)
35
+ * [Heroku](#heroku)
36
+ * [Lambda](#lambda)
37
+ * [Launchpad](#launchpad)
38
+ * [Nodejitsu](#nodejitsu)
39
+ * [NPM](#npm)
40
+ * [OpenShift](#openshift)
41
+ * [packagecloud](#packagecloud)
42
+ * [Puppet Forge](#puppet-forge)
43
+ * [PyPi](#pypi)
44
+ * [Rackspace Cloud Files](#rackspace-cloud-files)
45
+ * [RubyGems](#rubygems)
46
+ * [Scalingo](#scalingo)
47
+ * [Script](#script)
48
+ * [Snap](#snap)
49
+ * [Surge.sh](#surgesh)
50
+ * [TestFairy](#testfairy)
51
+
52
+ ## Installation:
53
+
54
+ Dpl is published to rubygems.
55
+
56
+ * Dpl requires ruby 2.2 and later.
57
+ * To install: `gem install dpl`
58
+
59
+ ## Usage:
60
+
61
+ ### Security Warning:
62
+
63
+ Running dpl in a terminal that saves history is insecure as your password/api key will be saved as plain text by it.
64
+
65
+ ### Global Flags
66
+ * `--provider=<provider>` sets the provider you want to deploy to. Every provider has slightly different flags, which are documented in the section about your provider following.
67
+ * Dpl will deploy by default from the latest commit. Use the `--skip_cleanup` flag to deploy from the current file state. Note that many providers deploy by git and could ignore this option.
68
+
69
+ ### Heroku:
70
+
71
+ #### Options:
72
+ * **api-key**: Heroku API Key
73
+ * **strategy**: Deployment strategy for Dpl. Defaults to `api`. The other option is `git`.
74
+ * **app**: Heroku app name. Defaults to the name of your git repo.
75
+ * **username**: heroku username. Not necessary if api-key is used. Requires git strategy.
76
+ * **password**: heroku password. Not necessary if api-key is used. Requires git strategy.
77
+
78
+ #### API vs Git Deploy:
79
+ * API deploy will tar up the current directory (minus the git repo) and send it to Heroku.
80
+ * Git deploy will send the contents of the git repo only, so may not contain any local changes.
81
+ * The Git strategy allows using *user* and *password* instead of *api-key*.
82
+ * When using Git, Heroku might send you an email for every deploy, as it adds a temporary SSH key to your account.
83
+
84
+ #### Examples:
85
+
86
+ dpl --provider=heroku --api-key=`heroku auth:token`
87
+ dpl --provider=heroku --strategy=git --username=<username> --password=<password> --app=<application>
88
+
89
+
90
+ ### Bintray:
91
+
92
+ #### Options:
93
+
94
+ * **file**: Path to a descriptor file, containing information for the Bintray upload.
95
+ * **user**: Bintray user
96
+ * **key**: Bintray API key
97
+ * **passphrase**: Optional. In case a passphrase is configured on Bintray and GPG signing is used.
98
+ * **dry-run**: Optional. If set to true, skips sending requests to Bintray. Useful for testing your configuration.
99
+
100
+ #### Descriptor file example:
101
+ ```groovy
102
+ {
103
+ /* Bintray package information.
104
+ In case the package already exists on Bintray, only the name, repo and subject
105
+ fields are mandatory. */
106
+
107
+ "package": {
108
+ "name": "auto-upload", // Bintray package name
109
+ "repo": "myRepo", // Bintray repository name
110
+ "subject": "myBintrayUser", // Bintray subject (user or organization)
111
+ "desc": "I was pushed completely automatically",
112
+ "website_url": "www.jfrog.com",
113
+ "issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues",
114
+ "vcs_url": "https://github.com/bintray/bintray-client-java.git",
115
+ "github_use_tag_release_notes": true,
116
+ "github_release_notes_file": "RELEASE.txt",
117
+ "licenses": ["MIT"],
118
+ "labels": ["cool", "awesome", "gorilla"],
119
+ "public_download_numbers": false,
120
+ "public_stats": false,
121
+ "attributes": [{"name": "att1", "values" : ["val1"], "type": "string"},
122
+ {"name": "att2", "values" : [1, 2.2, 4], "type": "number"},
123
+ {"name": "att5", "values" : ["2014-12-28T19:43:37+0100"], "type": "date"}]
124
+ },
125
+
126
+ /* Package version information.
127
+ In case the version already exists on Bintray, only the name fields is mandatory. */
128
+
129
+ "version": {
130
+ "name": "0.5",
131
+ "desc": "This is a version",
132
+ "released": "2015-01-04",
133
+ "vcs_tag": "0.5",
134
+ "attributes": [{"name": "VerAtt1", "values" : ["VerVal1"], "type": "string"},
135
+ {"name": "VerAtt2", "values" : [1, 3.2, 5], "type": "number"},
136
+ {"name": "VerAtt3", "values" : ["2015-01-01T19:43:37+0100"], "type": "date"}],
137
+ "gpgSign": false
138
+ },
139
+
140
+ /* Configure the files you would like to upload to Bintray and their upload path.
141
+ You can define one or more groups of patterns.
142
+ Each group contains three patterns:
143
+
144
+ includePattern: Pattern in the form of Ruby regular expression, indicating the path of files to be uploaded to Bintray.
145
+ excludePattern: Optional. Pattern in the form of Ruby regular expression, indicating the path of files to be removed from the list of files specified by the includePattern.
146
+ uploadPattern: Upload path on Bintray. The path can contain symbols in the form of $1, $2,... that are replaced with capturing groups defined in the include pattern.
147
+
148
+ In the example below, the following files are uploaded,
149
+ 1. All gem files located under build/bin/ (including sub directories),
150
+ except for files under a the do-not-deploy directory.
151
+ The files will be uploaded to Bintray under the gems folder.
152
+ 2. All files under build/docs. The files will be uploaded to Bintray under the docs folder.
153
+
154
+ Note: Regular expressions defined as part of the includePattern property must be wrapped with brackets. */
155
+
156
+ "files":
157
+ [
158
+ {"includePattern": "build/bin(.*)*/(.*\.gem)", "excludePattern": ".*/do-not-deploy/.*", "uploadPattern": "gems/$2"},
159
+ {"includePattern": "build/docs/(.*)", "uploadPattern": "docs/$1"}
160
+ ],
161
+ "publish": true
162
+ }
163
+ ```
164
+
165
+ #### Debian Upload
166
+
167
+ When artifacts are uploaded to a Debian repository using the Automatic index layout, the Debian distribution information is required and must be specified. The information is specified in the descriptor file by the matrixParams as part of the files closure as shown in the following example:
168
+ ```groovy
169
+ "files":
170
+ [{"includePattern": "build/bin/(.*\.deb)", "uploadPattern": "$1",
171
+ "matrixParams": {
172
+ "deb_distribution": "vivid",
173
+ "deb_component": "main",
174
+ "deb_architecture": "amd64"}
175
+ }
176
+ ]
177
+ ```
178
+
179
+ #### Examples:
180
+ dpl --provider=bintray --file=<path> --user=<username> --key=<api-key>
181
+ dpl --provider=bintray --file=<path> --user=<username> --key=<api-key> --passphrase=<passphrase>
182
+
183
+
184
+ ### Boxfuse
185
+
186
+ Boxfuse will transform your .jar or .war file of your JVM-based application into a minimal machine image based upon which it will launch EC2 instances on AWS.
187
+
188
+ #### Options
189
+
190
+ * **user**: Your Boxfuse user
191
+ * **secret**: Your Boxfuse secret
192
+ * **configfile**: The Boxfuse configuration file to use (default: boxfuse.conf)
193
+ * **payload**: The file to use as a payload for the image
194
+ * **app**: The Boxfuse app to deploy (default: auto-detected based on payload file name)
195
+ * **version**: The version to assign to the image (default: auto-detected based on payload file name)
196
+ * **env**: The Boxfuse environment to deploy to (default: test)
197
+
198
+ All options can also be configured directly in boxfuse.conf as described in [the documentation](https://boxfuse.com/docs/commandline/#configuration).
199
+
200
+ #### Environment Variables
201
+
202
+ For authentication you can also use Travis CI secure environment variable:
203
+
204
+ * **BOXFUSE_USER**: Your Boxfuse user
205
+ * **BOXFUSE_SECRET**: Your Boxfuse secret
206
+
207
+ #### Examples
208
+ dpl --provider=boxfuse
209
+ dpl --provider=boxfuse --user=<your-boxfuse-user> --secret=<your-boxfuse-secret> --env=<your-boxfuse-environment>
210
+ dpl --provider=boxfuse --configfile=<your-boxfuse-config-file>
211
+
212
+
213
+ ### Nodejitsu:
214
+
215
+ #### Options:
216
+
217
+ * **username**: Nodejitsu Username
218
+ * **api-key**: Nodejitsu API Key
219
+
220
+ #### Examples:
221
+ dpl --provider=nodejitsu --username=<username> --api-key=<api-key>
222
+
223
+ ### Engine Yard:
224
+
225
+ #### Options:
226
+
227
+ * **api-key**: Engine Yard Api Key
228
+ * **username**: Engine Yard username. Not necessary if api-key is used. Requires git strategy.
229
+ * **password**: Engine Yard password. Not necessary if api-key is used.
230
+ * **app**: Engine Yard Application name. Defaults to git repo's name.
231
+ * **environment**: Engine Yard Application Environment. Optional.
232
+ * **migrate**: Engine Yard migration commands. Optional.
233
+
234
+ #### Examples:
235
+
236
+ dpl --provider=engineyard --api-key=<api-key>
237
+ dpl --provider=engineyard --username=<username> --password=<password> --environment=staging
238
+ dpl --provider=engineyard --api-key=<api-key> --app=<application> --migrate=`rake db:migrate`
239
+
240
+ ### OpenShift:
241
+
242
+ #### Options:
243
+
244
+ * **user**: Openshift Username.
245
+ * **password**: Openshift Password.
246
+ * **domain**: Openshift Application Domain.
247
+ * **app**: Openshift Application. Defaults to git repo's name.
248
+
249
+ #### Examples:
250
+
251
+ dpl --provider=openshift --user=<username> --password=<password> --domain=<domain>
252
+ dpl --provider=openshift --user=<username> --password=<password> --domain=<domain> --app=<app>
253
+
254
+ ### RubyGems:
255
+
256
+ #### Options:
257
+
258
+ * **api-key**: Rubygems Api Key.
259
+ * **gemspec**: Optional. The name of the `gemspec` file to use to build the gem.
260
+ * **gemspec_glob**: Optional. A glob pattern to search for gemspec files when multiple gems are generated in the repository.
261
+ This _overrides_ the `gemspec` option.
262
+
263
+ #### Examples:
264
+
265
+ dpl --provider=rubygems --api-key=<api-key>
266
+
267
+ ### PyPI:
268
+
269
+ #### Options:
270
+
271
+ * **user**: PyPI Username.
272
+ * **password**: PyPI Password.
273
+ * **server**: Optional. Only required if you want to release to a different index. Follows the form of 'https://mypackageindex.com/index'. Defaults to 'https://upload.pypi.org/legacy/'.
274
+ * **distributions**: Optional. A space-separated list of distributions to be uploaded to PyPI. Defaults to 'sdist'.
275
+ * **skip_upload_docs**: Optional. When set to `false`, documentation is uploaded. Defaults to `true`.
276
+ Note that upload.pypi.org does not support document uploading. If you set
277
+ this option to `false`, your deployment fails, unless you specify the server
278
+ that supports this option. See https://github.com/travis-ci/dpl/issues/660
279
+ for details.
280
+ * **docs_dir**: Optional. A path to the directory to upload documentation from. Defaults to 'build/docs'
281
+ * **skip_existing**: Optional. When set to `true`, the deployment will not fail if a file with the same name already exists on the server. It won't be uploaded and will not overwrite the existing file. Defaults to `false`.
282
+
283
+ #### Environment variables:
284
+
285
+ * **PYPI_USER**: PyPI Username. Used if the `user` option is omitted.
286
+ * **PYPI_PASSWORD**: PyPI Password. Used if the `password` option is omitted.
287
+ * **PYPI_SERVER** Optional. Only required if you want to release to a different index. Used if the `server` option is omitted.
288
+ * **PYPI_DISTRIBUTIONS** Optional. A space-separated list of distributions to be uploaded to PyPI. Used if the `distributions` option is omitted.
289
+ * **PYPI_DOCS_DIR** Optional. A path to the directory to upload documentation from. Used if the `docs_dir` option is omitted.
290
+
291
+ #### Examples:
292
+
293
+ dpl --provider=pypi --user=<username> --password=<password>
294
+ dpl --provider=pypi --user=<username> --password=<password> --server='https://mypackageindex.com/index' --distributions='sdist bdist_wheel'
295
+
296
+ ### NPM:
297
+
298
+ #### Options:
299
+
300
+ * **email**: NPM email.
301
+ * **api-key**: NPM api key. Can be retrieved from your ~/.npmrc file.
302
+
303
+ #### Examples:
304
+
305
+ dpl --provider=npm --email=<email> --api-key=<api-key>
306
+
307
+ ### S3:
308
+
309
+ #### Options:
310
+
311
+ * **access-key-id**: AWS Access Key ID. Can be obtained from [here](https://console.aws.amazon.com/iam/home?#security_credential).
312
+ * **secret-access-key**: AWS Secret Key. Can be obtained from [here](https://console.aws.amazon.com/iam/home?#security_credential).
313
+ * **bucket**: S3 Bucket.
314
+ * **region**: S3 Region. Defaults to us-east-1.
315
+ * **endpoint**: S3 Endpoint. Default is computed for you.
316
+ * **upload-dir**: S3 directory to upload to. Defaults to root directory.
317
+ * **storage-class**: S3 storage class to upload as. Defaults to "STANDARD". Other values are "STANDARD_IA" or "REDUCED_REDUNDANCY". Details can be found [here](https://aws.amazon.com/s3/storage-classes/).
318
+ * **server-side-encryption**: When set to `true`, use S3 Server Side Encryption (SSE-AES256). Defaults to `false`.
319
+ * **local-dir**: Local directory to upload from. Can be set from a global perspective (~/travis/build) or relative perspective (build) Defaults to project root.
320
+ * **detect-encoding**: Set HTTP header `Content-Encoding` for files compressed with `gzip` and `compress` utilities. Defaults to not set.
321
+ * **cache_control**: Set HTTP header `Cache-Control` to suggest that the browser cache the file. Defaults to `no-cache`. Valid options are `no-cache`, `no-store`, `max-age=<seconds>`,`s-maxage=<seconds>` `no-transform`, `public`, `private`.
322
+ * **expires**: This sets the date and time that the cached object is no longer cacheable. Defaults to not set. The date must be in the format `YYYY-MM-DD HH:MM:SS -ZONE`.
323
+ * **acl**: Sets the access control for the uploaded objects. Defaults to `private`. Valid options are `private`, `public_read`, `public_read_write`, `authenticated_read`, `bucket_owner_read`, `bucket_owner_full_control`.
324
+ * **dot_match**: When set to `true`, upload files starting a `.`.
325
+ * **index_document_suffix**: Set the index document of a S3 website.
326
+ * **default_text_charset**: Set the default character set to append to the content-type of text files you are uploading.
327
+ * **max_threads**: The number of threads to use for S3 file uploads. Default is 5, and the absolute maximum is 15.
328
+
329
+ #### File-specific `Cache-Control` and `Expires` headers
330
+
331
+ It is possible to set file-specific `Cache-Control` and `Expires` headers using `value: file[, file]` format.
332
+
333
+ #### Environment variables:
334
+
335
+ * **AWS_ACCESS_KEY_ID**: AWS Access Key ID. Used if the `access-key-id` option is omitted.
336
+ * **AWS_SECRET_ACCESS_KEY**: AWS Secret Key. Used if the `secret-access-key` option is omitted.
337
+
338
+ ##### Example:
339
+
340
+ --cache_control="no-cache: index.html"
341
+ --expires="\"2012-12-21 00:00:00 -0000\": *.css, *.js"
342
+
343
+ #### Examples:
344
+
345
+ dpl --provider=s3 --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket> --acl=public_read
346
+ dpl --provider=s3 --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket> --detect-encoding --cache_control=max-age=99999 --expires="2012-12-21 00:00:00 -0000"
347
+ dpl --provider=s3 --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket> --region=us-west-2 --local-dir=BUILD --upload-dir=BUILDS
348
+
349
+ ### Using S3-compatible Object Storage
350
+
351
+ By overriding the `endpoint` option, you can use an S3-compatible object storage such as [Digital Ocean Spaces](https://www.digitalocean.com/products/object-storage/).
352
+
353
+ For example: `--endpoint=https://nyc3.digitaloceanspaces.com`
354
+
355
+ ### Elastic Beanstalk:
356
+
357
+ #### Options:
358
+
359
+ * **access-key-id**: AWS Access Key ID. Can be obtained from [here](https://console.aws.amazon.com/iam/home?#security_credential).
360
+ * **secret-access-key**: AWS Secret Key. Can be obtained from [here](https://console.aws.amazon.com/iam/home?#security_credential).
361
+ * **region**: AWS Region the Elastic Beanstalk app is running in. Defaults to 'us-east-1'. Please be aware that this must match the region of the elastic beanstalk app.
362
+ * **app**: Elastic Beanstalk application name.
363
+ * **env**: Elastic Beanstalk environment name which will be updated.
364
+ * **zip_file**: The zip file that you want to deploy. _**Note:**_ you also need to use the `skip_cleanup` or the zip file you are trying to upload will be removed during cleanup.
365
+ * **bucket_name**: Bucket name to upload app to.
366
+ * **bucket_path**: Location within Bucket to upload app to.
367
+ * **only_create_app_version**: only create the app version, don't actually deploy it.
368
+
369
+ #### Environment variables:
370
+
371
+ * **ELASTIC_BEANSTALK_ENV**: Elastic Beanstalk environment name which will be updated. Is only used if `env` option is omitted.
372
+ * **ELASTIC_BEANSTALK_LABEL**: Label name of the new version.
373
+ * **ELASTIC_BEANSTALK_DESCRIPTION**: Description of the new version. Defaults to the last commit message.
374
+
375
+ #### Examples:
376
+
377
+ dpl --provider=elasticbeanstalk --access-key-id=<access-key-id> --secret-access-key="<secret-access-key>" --app="example-app-name" --env="example-app-environment" --region="us-west-2"
378
+
379
+ ### OpsWorks:
380
+
381
+ #### Options:
382
+
383
+ * **access-key-id**: AWS Access Key ID. Can be obtained from [here](https://console.aws.amazon.com/iam/home?#security_credential).
384
+ * **secret-access-key**: AWS Secret Key. Can be obtained from [here](https://console.aws.amazon.com/iam/home?#security_credential).
385
+ * **app-id**: The app ID.
386
+ * **instance-ids**: An instance id. (Use this option multiple times to specify multiple instance ids. Default: [])
387
+ * **layer-ids**: A layer id. (Use this option multiple times to specify multiple layer ids. Default: [])
388
+ * **migrate**: Migrate the database. (Default: false)
389
+ * **wait-until-deployed**: Wait until the app is deployed and return the deployment status. (Default: false)
390
+ * **update-on-success**: When **wait-until-deployed** and **updated-on-success** are both `true`, application source is updated to the current SHA. Ignored when **wait-until-deployed** is false. (Default: false)
391
+ * **custom_json**: Override custom_json options. If using this, default configuration will be overriden. See the code [here](https://github.com/travis-ci/dpl/blob/master/lib/dpl/provider/ops_works.rb#L43). More about `custom_json` [here](http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json.html).
392
+
393
+ #### Environment variables:
394
+
395
+ * **AWS_ACCESS_KEY_ID**: AWS Access Key ID. Used if the `access-key-id` option is omitted.
396
+ * **AWS_SECRET_ACCESS_KEY**: AWS Secret Key. Used if the `secret-access-key` option is omitted.
397
+
398
+ #### Examples:
399
+
400
+ dpl --provider=opsworks --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --app-id=<app-id> --migrate --wait-until-deployed
401
+ dpl --provider=opsworks --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --app-id=<app-id> --layer-ids=<layer-id>
402
+
403
+ ### Anynines:
404
+
405
+ #### Options:
406
+
407
+ * **username**: anynines username.
408
+ * **password**: anynines password.
409
+ * **organization**: anynines target organization.
410
+ * **space**: anynines target space
411
+ * **app_name**: Application name. Optional.
412
+
413
+ #### Examples:
414
+
415
+ dpl --provider=anynines --username=<username> --password=<password> --organization=<organization> --space=<space>
416
+
417
+ ### Atlas:
418
+
419
+ The Atlas provider uses the [`atlas-upload-cli`](https://github.com/hashicorp/atlas-upload-cli) command. The [Atlas Upload CLI](https://github.com/hashicorp/atlas-upload-cli) is a lightweight command line interface for uploading application code to [Atlas](https://atlas.hashicorp.com/homepage?utm_source=github&utm_medium=travis-ci&utm_campaign=dpl) to kick off Atlas-based deployment processes from Travis CI.
420
+
421
+ You first need to create an [Atlas account](https://atlas.hashicorp.com/account/new?utm_source=github&utm_medium=travis-ci&utm_campaign=dpl), then, generate an [Atlas API token](https://atlas.hashicorp.com/settings/tokens) for Travis CI.
422
+
423
+ #### Options:
424
+
425
+ * **token** (Required): Atlas API token.
426
+ * **app** (Required): Atlas application name (`<atlas-username>/<app-name>`).
427
+ * **exclude**: Glob pattern of files or directories to exclude (this may be specified multiple times).
428
+ * **include**: Glob pattern of files/directories to include (this may be specified multiple times, any excludes will override conflicting includes).
429
+ * **address**: The address of the Atlas server.
430
+ * **vcs**: Use VCS to determine which files to include/exclude.
431
+ * **metadata**: Arbitrary key-value (string) metadata to be sent with the upload; may be specified multiple times.
432
+ * **debug**: Turn on debug output.
433
+ * **version**: Print the version of this application.
434
+
435
+ #### Examples:
436
+
437
+ dpl --provider=atlas --token=ATLAS_TOKEN --app=ATLAS_USERNAME/APP_NAME
438
+ dpl --provider=atlas --token=ATLAS_TOKEN --app=ATLAS_USERNAME/APP_NAME --debug --vcs --version
439
+ dpl --provider=atlas --token=ATLAS_TOKEN --app=ATLAS_USERNAME/APP_NAME --exclude="*.log" --include="build/*" --include="bin/*"
440
+ dpl --provider=atlas --token=ATLAS_TOKEN --app=ATLAS_USERNAME/APP_NAME --metadata="foo=bar" --metadata="bar=baz"
441
+
442
+ ### Azure Web Apps:
443
+
444
+ #### Options:
445
+
446
+ * **site**: Web App Name (if your app lives at myapp.azurewebsites.net, the name would be myapp).
447
+ * **slot**: Optional. Slot name if your app uses staging deployment. (e.g. if your slot lives at myapp-test.azurewebsites.net, the slot would be myapp-test).
448
+ * **username**: Web App Deployment Username.
449
+ * **password**: Web App Deployment Password.
450
+ * **verbose**: If passed, Azure's deployment output will be printed. Warning: If you provide incorrect credentials, Git will print those in clear text. Correct authentication credentials will remain hidden.
451
+
452
+ #### Environment variables:
453
+
454
+ * **AZURE_WA_SITE** Web App Name. Used if the `site` option is omitted.
455
+ * **AZURE_WA_SLOT** Optional. Slot name if your app uses staging deployment. Used if the `slot` option is omitted.
456
+ * **AZURE_WA_USERNAME**: Web App Deployment Username. Used if the `username` option is omitted.
457
+ * **AZURE_WA_PASSWORD**: Web App Deployment Password. Used if the `password` option is omitted.
458
+
459
+ #### Examples:
460
+
461
+ dpl --provider=AzureWebApps --username=depluser --password=deplp@ss --site=dplsite --slot=dplsite-test --verbose
462
+
463
+ ### Cloud Foundry:
464
+
465
+ #### Options:
466
+
467
+ * **username**: Cloud Foundry username.
468
+ * **password**: Cloud Foundry password.
469
+ * **organization**: Cloud Foundry target organization.
470
+ * **api**: Cloud Foundry api URL
471
+ * **space**: Cloud Foundry target space
472
+ * **app_name**: Application name. Optional.
473
+ * **manifest**: Path to manifest file. Optional.
474
+ * **skip_ssl_validation**: Skip ssl validation. Optional.
475
+
476
+ #### Examples:
477
+
478
+ dpl --provider=cloudfoundry --username=<username> --password=<password> --organization=<organization> --api=<api> --space=<space> --skip-ssl-validation
479
+
480
+ ### cargo:
481
+
482
+ #### Options:
483
+
484
+ * **token**: Your cargo registry API token, for crates.io generate at <https://crates.io/me>
485
+
486
+ #### Examples:
487
+
488
+ dpl --provider=cargo --token=<token>
489
+
490
+ ### Rackspace Cloud Files:
491
+
492
+ #### Options:
493
+
494
+ * **username**: Rackspace Username.
495
+ * **api-key**: Rackspace API Key.
496
+ * **region**: Cloud Files Region. The region in which your Cloud Files container exists.
497
+ * **container**: Container Name. The container where you would like your files to be uploaded.
498
+ * **dot_match**: When set to `true`, upload files starting a `.`.
499
+
500
+ #### Examples:
501
+
502
+ dpl --provider=cloudfiles --username=<username> --api-key=<api-key> --region=<region> --container=<container>
503
+
504
+ ### GitHub Pages:
505
+
506
+ #### Options:
507
+
508
+ * **github-token**: GitHub oauth token with `repo` permission.
509
+ * **repo**: Repo slug, defaults to current one.
510
+ * **target-branch**: Branch to push force to, defaults to gh-pages.
511
+ * **keep-history**: Optional, create incremental commit instead of doing push force, defaults to false.
512
+ * **allow-empty-commit**: Optional, defaults to false. Enabled if only keep-history is true.
513
+ * **committer-from-gh**: Optional, defaults to false. Allows to use token's owner name and email for commit. Overrides `email` and `name` options.
514
+ * **verbose**: Optional, be verbose about internal steps, defaults to false.
515
+ * **local-dir**: Directory to push to GitHub Pages, defaults to current.
516
+ * **fqdn**: Optional, no default, sets a main domain for your website.
517
+ * **project-name**: Defaults to fqdn or repo slug, used for metadata.
518
+ * **email**: Optional, committer info, defaults to deploy@travis-ci.org.
519
+ * **name**: Optional, committer, defaults to Deployment Bot.
520
+ * **deployment-file**: Optional, defaults to false, enables creation of deployment-info files
521
+
522
+ #### Examples:
523
+
524
+ dpl --provider=pages --github-token=<api-key> --local-dir=build
525
+
526
+ ### GitHub Releases:
527
+
528
+ #### Options:
529
+
530
+ * **api-key**: GitHub oauth token with `public_repo` or`repo` permission.
531
+ * **user**: GitHub username. Not necessary if `api-key` is used.
532
+ * **password**: GitHub Password. Not necessary if `api-key` is used.
533
+ * **repo**: GitHub Repo. Defaults to git repo's name.
534
+ * **file**: File to upload to GitHub Release.
535
+ * **file_glob**: If files should be interpreted as globs (\* and \*\* wildcards). Defaults to false.
536
+ * **overwrite**: If files with the same name should be overwritten. Defaults to false.
537
+ * **release-number**: Overide automatic release detection, set a release manually.
538
+ * **prerelease**: Identify the release as a prerelease.
539
+
540
+ Additionally, options can be passed to [Octokit](https://github.com/octokit/octokit.rb) client.
541
+ These are documented in https://github.com/octokit/octokit.rb/blob/master/lib/octokit/client/releases.rb.
542
+
543
+ #### GitHub Two Factor Authentication
544
+
545
+ For accounts using two factor authentication, you have to use an oauth token as a username and password will not work.
546
+
547
+ #### Examples:
548
+
549
+ dpl --provider=releases --api-key=<api-key> --file=build.tar.gz
550
+
551
+ ### Cloud 66
552
+
553
+ #### Options:
554
+
555
+ * **redeployment_hook**: The redeployment hook URL. Available from the Information menu within the Cloud 66 portal.
556
+
557
+ #### Examples:
558
+
559
+ dpl --provider=cloud66 --redeployment_hook=<url>
560
+
561
+ ### Hackage:
562
+
563
+ #### Options:
564
+
565
+ * **username**: Hackage username.
566
+ * **password**: Hackage password.
567
+
568
+ #### Examples:
569
+
570
+ dpl --provider=hackage --username=<username> --password=<password>
571
+
572
+ ### Deis:
573
+
574
+ #### Options:
575
+
576
+ * **controller**: Deis controller e.g. deis.deisapps.com
577
+ * **username**: Deis username
578
+ * **password**: Deis password
579
+ * **app**: Deis app
580
+ * **cli_version**: Install a specific deis cli version
581
+
582
+ #### Examples:
583
+
584
+ dpl --provider=deis --controller=deis.deisapps.com --username=travis --password=secret --app=example
585
+
586
+ ### Hephy:
587
+
588
+ #### Options:
589
+
590
+ * **controller**: Hephy controller e.g. hephy.hephyapps.com
591
+ * **username**: Hephy username
592
+ * **password**: Hephy password
593
+ * **app**: Hephy app
594
+ * **cli_version**: Install a specific hephy cli version
595
+
596
+ #### Examples:
597
+
598
+ dpl --provider=hephy --controller=hephy.hephyapps.com --username=travis --password=secret --app=example
599
+
600
+ ### Google Cloud Storage:
601
+
602
+ #### Options:
603
+
604
+ * **access-key-id**: GCS Interoperable Access Key ID. Info about Interoperable Access Key from [here](https://developers.google.com/storage/docs/migrating).
605
+ * **secret-access-key**: GCS Interoperable Access Secret.
606
+ * **bucket**: GCS Bucket.
607
+ * **upload-dir**: GCS directory to upload to. Defaults to root directory.
608
+ * **local-dir**: Local directory to upload from. Can be set from a global perspective (~/travis/build) or relative perspective (build) Defaults to project root.
609
+ * **dot_match**: When set to `true`, upload files starting a `.`.
610
+ * **detect-encoding**: Set HTTP header `Content-Encoding` for files compressed with `gzip` and `compress` utilities. Defaults to not set.
611
+ * **cache_control**: Set HTTP header `Cache-Control` to suggest that the browser cache the file. Defaults to not set. Info is [here](https://developers.google.com/storage/docs/reference-headers#cachecontrol)
612
+ * **acl**: Sets the access control for the uploaded objects. Defaults to not set. Info is [here](https://developers.google.com/storage/docs/reference-headers#xgoogacl)
613
+
614
+ #### Examples:
615
+
616
+ dpl --provider=gcs --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket>
617
+ dpl --provider=gcs --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket> --local-dir= BUILD
618
+ dpl --provider=gcs --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket> --acl=public-read
619
+ dpl --provider=gcs --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket> --detect-encoding --cache_control=max-age=99999
620
+ dpl --provider=gcs --access-key-id=<access-key-id> --secret-access-key=<secret-access-key> --bucket=<bucket> --local-dir=BUILD --upload-dir=BUILDS
621
+
622
+ ### BitBalloon:
623
+
624
+ #### Options:
625
+
626
+ * **access_token**: Optional. The access_token which can be found in the `.bitballoon` file after a deployment using the bitballoon CLI. Only required if no `.bitballoon` file is present.
627
+ * **site_id**: Optional. The site_id which can be found in the .bitballoon file after a deployment using the bitballoon CLI. Only required if no `.bitballoon` file is present.
628
+ * **local_dir**: Optional. The sub-directory of the built assets for deployment. Default to current path.
629
+
630
+ #### Examples:
631
+
632
+ dpl --access-token=<access-token> --site-id=3f932c1e-708b-4573-938a-a07d9728c22e
633
+ dpl --access-token=<access-token> --site-id=3f932c1e-708b-4573-938a-a07d9728c22e --local-dir=build
634
+
635
+ ### Puppet Forge:
636
+
637
+ #### Options:
638
+
639
+ * **user**: Required. The user name at Puppet forge.
640
+ * **password**: Required. The Puppet forge password.
641
+ * **url**: Optional. The forge URL to deploy to. Defaults to https://forgeapi.puppetlabs.com/
642
+
643
+ #### Examples:
644
+
645
+ dpl --provider=puppetforge --user=puppetlabs --password=s3cr3t
646
+
647
+ ### packagecloud:
648
+
649
+ #### Options:
650
+
651
+ * **username**: Required. The packagecloud.io username.
652
+ * **token**: Required. The [packagecloud.io api token](https://packagecloud.io/docs/api#api_tokens).
653
+ * **repository**: Required. The repository to push to.
654
+ * **local_dir**: Optional. The sub-directory of the built assets for deployment. Default to current path.
655
+ * **dist**: Required for debian, rpm, and node.js packages. The complete list of supported strings can be found on the [packagecloud.io docs](https://packagecloud.io/docs#os_distro_version). For node.js packages, simply use "node".
656
+ * **force**: Optional. Whether package has to be (re)uploaded / deleted before upload
657
+
658
+ #### Examples:
659
+
660
+ dpl --provider=packagecloud --username=packageuser --token=t0k3n --repository=myrepo
661
+ dpl --provider=packagecloud --username=packageuser --token=t0k3n --repository=myrepo --dist=ubuntu/precise
662
+ dpl --provider=packagecloud --username=packageuser --token=t0k3n --repository=myrepo --local-dir="${TRAVIS_BUILD_DIR}/pkgs" --dist=ubuntu/precise
663
+
664
+ ### Catalyze:
665
+
666
+ #### Options:
667
+
668
+ * **target**: Required. The git remote repository to deploy to.
669
+ * **path**: Optional. If using the skip_cleanup option to deploy from current file state, you can optionally specify the pathspec for the files to deploy. If not specified then all files are deployed.
670
+
671
+ #### Examples:
672
+
673
+ dpl --provider=catalyze --target=ssh://git@git.catalyzeapps.com:2222/app1234.git
674
+ dpl --provider=catalyze --target=ssh://git@git.catalyzeapps.com:2222/app1234.git --skip_cleanup=true
675
+ dpl --provider=catalyze --target=ssh://git@git.catalyzeapps.com:2222/app1234.git --skip_cleanup=true --path=build
676
+
677
+
678
+ #### Setup:
679
+
680
+ 1. Get the deployment target for Catalyze:
681
+ 1. Make sure your catalyze environment is [associated](https://resources.catalyze.io/paas/paas-cli-reference/#associate).
682
+ 2. Get the git remote by running ```git remote -v``` from within the associated repo.
683
+ 2. Setup a deployment key to Catalyze for Travis CI:
684
+ 1. Install the travis-ci cli.
685
+ 2. Get the public SSH key for your travis project and save it to a file by running ```travis pubkey > travis.pub```
686
+ 3. Add the key as a deploy key using the catalyze cli within the associated repo. For example: ```catalyze deploy-keys add travisci ./travis.pub code-1```
687
+ 3. Setup Catalyze as a known host for Travis CI:
688
+ 1. List your known hosts by running ```cat ~/.ssh/known_hosts```
689
+ 2. Find and copy the line from known_hosts that includes the git remote found in step #1. It'll look something like "[git.catalyzeapps.com]:2222 ecdsa-sha2-nistp256 BBBB12abZmKlLXNo..."
690
+ 3. Update your `before_deploy` step in `.travis.yml` to update the `known_hosts` file:
691
+
692
+ ```
693
+ before_deploy: echo "[git.catalyzeapps.com]:2222 ecdsa-sha2-nistp256 BBBB12abZmKlLXNo..." >> ~/.ssh/known_hosts
694
+ ```
695
+
696
+ ### Chef Supermarket:
697
+
698
+ #### Options:
699
+
700
+ * **user_id**: Required. The user name at Chef Supermarket.
701
+ * **client_key**: Required. The client API key file name.
702
+ * **cookbook_category**: Required. The cookbook category in Supermarket (see: https://docs.getchef.com/knife_cookbook_site.html#id12 )
703
+
704
+ #### Examples:
705
+
706
+ dpl --provider=chef-supermarket --user-id=chef --client-key=.travis/client.pem --cookbook-category=Others
707
+
708
+ ### Lambda:
709
+
710
+ #### Options:
711
+
712
+ * **access_key_id**: AWS Access Key ID. Can be obtained from [here](https://console.aws.amazon.com/iam/home?#security_credential).
713
+ * **secret_access_key**: AWS Secret Key. Can be obtained from [here](https://console.aws.amazon.com/iam/home?#security_credential).
714
+ * **region**: AWS Region the Lambda function is running in. Defaults to 'us-east-1'.
715
+ * **function_name**: Required. The name of the Lambda being created / updated.
716
+ * **role**: Required. The ARN of the IAM role to assign to this Lambda function.
717
+ * **handler_name**: Required. The function that Lambda calls to begin execution. For NodeJS, it is exported function for the module.
718
+ * **dot_match**: Optional. When `true`, the zipped archive will include the hidden `.*` files. Defaults to `false`.
719
+ * **module_name**: Optional. The name of the module that exports the handler. Defaults to `index`.
720
+ * **zip**: Optional. Either a path to an existing packaged (zipped or jar file) Lambda, a directory to package, or a single file to package. Defaults to `Dir.pwd`.
721
+ * **description**: Optional. The description of the Lambda being created / updated. Defaults to "Deploy build #{context.env['TRAVIS_BUILD_NUMBER']} to AWS Lambda via Travis CI"
722
+ * **timeout**: Optional. The function execution time at which Lambda should terminate the function. Defaults to 3 (seconds).
723
+ * **memory_size**: Optional. The amount of memory in MB to allocate to this Lambda. Defaults to 128.
724
+ * **runtime**: Optional. The Lambda runtime to use. Defaults to `node`.
725
+ * **publish**: If `true`, a [new version](http://docs.aws.amazon.com/lambda/latest/dg/versioning-intro.html#versioning-intro-publish-version) of the Lambda function will be created instead of replacing the code of the existing one.
726
+ * **subnet_ids**: Optional. List of subnet IDs to be added to the function. Needs the `ec2:DescribeSubnets` and `ec2:DescribeVpcs` permission for the user of the access/secret key to work.
727
+ * **security_group_ids**: Optional. List of security group IDs to be added to the function. Needs the `ec2:DescribeSecurityGroups` and `ec2:DescribeVpcs` permission for the user of the access/secret key to work.
728
+ * **dead_letter_arn**: Optional. ARN to an SNS or SQS resource used for the dead letter queue. [More about DLQs here](https://docs.aws.amazon.com/lambda/latest/dg/dlq.html).
729
+ * **tracing_mode**: Optional. "Active" or "PassThrough" only. Default is "PassThrough". Needs the `xray:PutTraceSegments` and `xray:PutTelemetryRecords` on the role for this to work. [More on
730
+ Active Tracing here](https://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html).
731
+ * **environment_variables**: Optional. List of Environment Variables to add to the function, needs to be in the format of `KEY=VALUE`. Can be encrypted for added security.
732
+ * **kms_key_arn**: Optional. KMS key ARN to use to encrypt `environment_variables`.
733
+ * **function_tags**: Optional. List of tags to add to the function, needs to be in the format of `KEY=VALUE`. Can be encrypted for added security.
734
+
735
+ For a list of all [permissions for Lambda, please refer to the documentation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-api-permissions-ref.html).
736
+
737
+ #### Examples:
738
+
739
+ Deploy contents of current working directory using default module:
740
+ ```
741
+ dpl --provider="lambda" \
742
+ --access_key_id="${AWS_ACCESS_KEY}" \
743
+ --secret_access_key="${AWS_SECRET_KEY}" \
744
+ --function_name="test-lambda" \
745
+ --role="${AWS_LAMBDA_ROLE}" \
746
+ --handler_name="handler";
747
+ ```
748
+ Deploy contents of a specific directory using specific module name:
749
+ ```
750
+ dpl --provider="lambda" \
751
+ --access_key_id="${AWS_ACCESS_KEY}" \
752
+ --secret_access_key="${AWS_SECRET_KEY}" \
753
+ --function_name="test-lambda" \
754
+ --role="${AWS_LAMBDA_ROLE}" \
755
+ --zip="${TRAVIS_BUILD_DIR}/dist" \
756
+ --module_name="copy" \
757
+ --handler_name="handler";
758
+ ```
759
+
760
+ ### Launchpad:
761
+
762
+ #### Options:
763
+
764
+ * **slug**: Required. `~user-name/project-name/branch-name`
765
+ * **oauth_token**: Required. Your OAUTH token for Launchpad
766
+ * **oauth_token_secret**: Required. Your OAUTH token secret for Launchpad
767
+
768
+ #### Example:
769
+
770
+ Deploy contents of current working directory using default module:
771
+ ```
772
+ dpl --provider="launchpad" \
773
+ --slug="~user-name/project-name/branch-name" \
774
+ --oauth_token="${LAUNCHPAD_OAUTH_TOKEN}" \
775
+ --oauth_token_secret="${LAUNCHPAD_OAUTH_TOKEN_SECRET}";
776
+ ```
777
+
778
+ ### TestFairy:
779
+
780
+ Your Android(apk)/iOS(ipa) file will be uploaded to TestFairy,
781
+ and your testers can start testing your app.
782
+
783
+ #### Options:
784
+ * **api-key**: TestFairy API Key (https://app.testfairy.com/settings/) run "travis encrypt --add deploy.api-key" on your repo.
785
+ * **app-file**: Path to the app file that will be generated after the build (APK/IPA).
786
+ * **symbols-file**: Path to the symbols file.
787
+ * **testers-groups**: You can set a tester group to be notified about this build (group1,group1).
788
+ * **notify**: If true, an email you a changelog will be sent to your users.
789
+ * **auto-update**: If true, all the previous installations of this app will be automatically all upgraded to this version.
790
+ * **video-quality**: Video quality settings, "high", "medium" or "low". Default is "high".
791
+ * **screenshot-interval**: You can choose "1"\"2"\"10" sec.
792
+ * **max-duration**: Maximum session recording length, eg "20m" or "1h". Default is "10m". Maximum "24h".
793
+ * **advanced-options**: For example (option1,option2)
794
+ * **data-only-wifi**: If true, video and recorded metrics will be sent only when connected to a wifi network.
795
+ * **record-on-background**: If true, data will be collected while the app on background.
796
+ * **video**: If true, Video recording settings "true", "false". Default is "true".
797
+ * **icon-watermark**: Add a small watermark to app icon. Default is "false".
798
+ * **metrics**: Comma-separated list of metrics to record. View list on http://docs.testfairy.com/Upload_API.html.
799
+
800
+ #### Examples:
801
+
802
+ dpl --provider=testfairy --api-key=<api-key> --app-file="out/Sample.apk" --keystore-file="out/keystore" --storepass=<storepass> --alias=<alias>
803
+
804
+ ### AWS CodeDeploy:
805
+
806
+ #### Options:
807
+
808
+ * **access_key_id**: AWS Access Key.
809
+ * **secret_access_key**: AWS Secret Access Key.
810
+ * **application**: CodeDeploy Application Name.
811
+ * **deployment_group**: CodeDeploy Deployment Group Name.
812
+ * **revision_type**: CodeDeploy Revision Type (S3 or GitHub).
813
+ * **commit_id**: Commit ID in case of GitHub.
814
+ * **repository**: Repository Name in case of GitHub.
815
+ * **bucket**: S3 bucket in case of S3.
816
+ * **region**: AWS Availability Zone.
817
+ * **wait_until_deployed**: Wait until the app is deployed and return the deployment status (Optional, Default false).
818
+
819
+ #### Environment variables:
820
+
821
+ * **AWS_ACCESS_KEY_ID**: AWS Access Key ID. Used if the `access_key_id` option is omitted.
822
+ * **AWS_SECRET_ACCESS_KEY**: AWS Secret Key. Used if the `secret_access_key` option is omitted.
823
+
824
+ #### Examples:
825
+
826
+ dpl --provider=codedeploy --access_key_id=<aws access key> --secret_access_key=<aws secret access key> --application=<application name> --deployment_group=<deployment group> --revision_type=<s3/github> --bucket=<bucket name> --commit_id=<commit ID> --repository=<repo name> --region=<AWS availability zone> --wait_until_deployed=<true>
827
+
828
+ ### Scalingo:
829
+
830
+ #### Options:
831
+ * **api_key**: scalingo API Key. Not necessary if username and password are used.
832
+ * **username**: scalingo username. Not necessary if api_key is used.
833
+ * **password**: scalingo password. Not necessary if api_key is used.
834
+ * **remote**: Remote url or git remote name of your git repository. By default remote name is "scalingo".
835
+ * **branch**: Branch of your git repository. By default branch name is "master".
836
+ * **app**: Only necessary if your repository does not contain the appropriate remote. Specifying the app will add a remote to your local repository: `git remote add <remote> git@scalingo.com:<app>.git`
837
+
838
+ #### Use:
839
+
840
+ You can connect to Scalingo using your username/password or your api key.
841
+ It needs [Scalingo CLI](http://cli.scalingo.com/) which will be [downloaded here](http://cli.scalingo.com/).
842
+ Then, it will push your project to Scalingo and deploy it automatically.
843
+
844
+ Note: You only need to connect once to Scalingo CLI, credentials are stored locally.
845
+
846
+ #### Examples:
847
+
848
+ dpl --provider=scalingo --api_key="aaAAbbBB0011223344"
849
+ dpl --provider=scalingo --username=<username> --password=<password>
850
+
851
+ dpl --provider=scalingo --api_key="aaAAbbBB0011223344" --remote="scalingo-staging"
852
+ dpl --provider=scalingo --api_key="aaAAbbBB0011223344" --remote="scalingo-staging" --branch="master"
853
+
854
+ dpl --provider=scalingo
855
+
856
+ ### Script:
857
+
858
+ An elementary provider that executes a single command.
859
+
860
+ Deployment will be marked a failure if the script exits with nonzero status.
861
+
862
+ #### Option:
863
+
864
+ * **script**: script to execute.
865
+
866
+ #### Example:
867
+
868
+ dpl --provider=script --script=./script/deploy.sh
869
+
870
+ ### Google App Engine:
871
+
872
+ Deploys to Google App Engine and Google App Engine Managed VMs via the Google Cloud SDK and
873
+ it's [`gcloud` tool](https://cloud.google.com/sdk/gcloud/) using a [Service Account](https://developers.google.com/console/help/new/#serviceaccounts).
874
+ In order to use this provider, please make sure you have the [App Engine Admin API](https://developers.google.com/apis-explorer/#p/appengine/v1beta4/) enabled [in the Google Developers Console](https://console.developers.google.com/project/_/apiui/apiview/appengine/overview).
875
+
876
+ #### Options:
877
+
878
+ * **project**: [Project ID](https://developers.google.com/console/help/new/#projectnumber) used to identify the project on Google Cloud.
879
+ * **keyfile**: Path to the JSON file containing your [Service Account](https://developers.google.com/console/help/new/#serviceaccounts) credentials in [JSON Web Token](https://tools.ietf.org/html/rfc7519) format. To be obtained via the [Google Developers Console](https://console.developers.google.com/project/_/apiui/credential). Defaults to `"service-account.json"`. Note that this file should be handled with care as it contains authorization keys.
880
+ * **config**: Path to your module configuration file. Defaults to `"app.yaml"`. This file is runtime dependent ([Go](https://cloud.google.com/appengine/docs/go/config/appconfig), [Java](https://cloud.google.com/appengine/docs/java/configyaml/appconfig_yaml), [PHP](https://developers.google.com/console/help/new/#projectnumber), [Python](https://cloud.google.com/appengine/docs/python/config/appconfig))
881
+ * **version**: The version of the app that will be created or replaced by this deployment. If you do not specify a version, one will be generated for you. See [`gcloud app deploy`](https://cloud.google.com/sdk/gcloud/reference/app/deploy)
882
+ * **no_promote**: Flag to not promote the deployed version. See [`gcloud app deploy`](https://cloud.google.com/sdk/gcloud/reference/app/deploy)
883
+ * **verbosity**: Let's you adjust the verbosity when invoking `"gcloud"`. Defaults to `"warning"`. See [`gcloud`](https://cloud.google.com/sdk/gcloud/reference/).
884
+ * **no_stop_previous_version**: Flag to prevent your deployment from stopping the previously promoted version. This is from the future, so might not work (yet). See [`gcloud app deploy`](https://cloud.google.com/sdk/gcloud/reference/app/deploy)
885
+
886
+ #### Environment variables:
887
+
888
+ * **GOOGLECLOUDPROJECT** or **CLOUDSDK_CORE_PROJECT**: Can be used instead of the `project` option.
889
+ * **GOOGLECLOUDKEYFILE**: Can be used instead of the `keyfile` option.
890
+
891
+ #### Example:
892
+
893
+ dpl --provider=gae --project=example --no_promote=true
894
+
895
+ ### Firebase:
896
+
897
+ #### Options:
898
+
899
+ * **token**: Your Firebase CI access token (generate with `firebase login:ci`)
900
+ * **project**: Deploy to a different Firebase project than specified in your `firebase.json` (e.g. `myapp-staging`)
901
+ * **message**: Optional. The message describing this deploy.
902
+
903
+ #### Examples:
904
+
905
+ dpl --provider=firebase --token=<token> --project=<project> --message=<message>
906
+
907
+
908
+
909
+ ### Snap
910
+
911
+ Deploys built snaps to the [snap store](https://snapcraft.io/).
912
+
913
+ #### Options:
914
+
915
+ * **snap** Path (glob) of the snap to be pushed
916
+ * **channel** Optional. Channel into which the snap will be released (defaults to `edge`)
917
+ * **token** Optional. Login token for the store (generate with `snapcraft export-login`). Falls back to the `$SNAP_TOKEN` environment variable
918
+
919
+ #### Examples:
920
+
921
+ dpl --provider=snap --token=<token> --snap=my.snap --channel=edge
922
+
923
+
924
+
925
+ ### Surge.sh
926
+
927
+ #### Options:
928
+
929
+ * **project** Path to project folder relative to repo root. Defaults to repo root if not set.
930
+ * **domain** Domain to publish to. Can be omitted if domain is set in the `CNAME` file in the project folder.
931
+
932
+
933
+ #### Environment variables:
934
+
935
+ * **SURGE_LOGIN**: Set it to the email address you use with Surge
936
+ * **SURGE_TOKEN**: Set it to your login token (get it by doing a `surge token`)
937
+
938
+ #### Example:
939
+ dpl --provider=surge --project=<project-path> --domain=<domain-name>
940
+
941
+ ### Bluemix Cloud Foundry:
942
+
943
+ #### Options:
944
+
945
+ * **username**: Bluemix username.
946
+ * **password**: Bluemix password.
947
+ * **organization**: Bluemix target organization.
948
+ * **space**: Bluemix target space
949
+ * **region**: Bluemix region [ng, eu-gb, eu-de, au-syd]. Optional, default US region (ng).
950
+ * **api**: Bluemix api URL. Optional for Bluemix dedicated. Explicit **api** setting precedence over **region** setting.
951
+ * **app_name**: Application name. Optional.
952
+ * **manifest**: Path to manifest file. Optional.
953
+ * **skip_ssl_validation**: Skip ssl validation. Optional.
954
+
955
+ #### Examples:
956
+
957
+ dpl --provider=bluemixcloudfoundry --username=<username> --password=<password> --organization=<organization> --region=<region> --space=<space> --skip-ssl-validation
958
+
959
+ ## `dpl` and `sudo`
960
+
961
+ `dpl` installs deployment provider code as the user invoking
962
+ `dpl` at run time, if it is not available.
963
+ This causes [a problem](https://github.com/travis-ci/dpl/issues/769)
964
+ if you invoke `dpl` via `dpl`, where the process instaling the
965
+ provider code may not have sufficient permissions.
966
+
967
+ In this case, you can install the provider gem (of the same version as
968
+ `dpl`) with `sudo` beforehand to work around this issue.