Skip to content

Commit

Permalink
Add typical deployment stage template to Travis CI
Browse files Browse the repository at this point in the history
Resolves atlassian#40. @dbaxa just needs to add his encrypted password.
Ref: https://docs.travis-ci.com/user/encryption-keys/
  • Loading branch information
webknjaz committed Oct 9, 2017
1 parent 9fa986b commit cb23da0
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,24 @@ jobs:
script:
- pep8 .

- stage: &deploy_stage_name deploy to PYPI (triggered only for tagged commits)
python: *main_python_version
script: skip
deploy:
provider: pypi
distribution: sdist bdist_wheel
user: dblack
password:
secure: YOUR_ENCRYPTED_PASSWORD_HERE_https://docs.travis-ci.com/user/encryption-keys/
# Since commit https://github.com/travis-ci/dpl/commit/90b5e39
# it is default that Travis PYPI provider has `skip_upload_docs: true`
# set by default.
on:
tags: true
all_branches: true

stages:
- *lint_stage_name
- test
- deploy
- name: *deploy_stage_name
if: tag IS present

0 comments on commit cb23da0

Please sign in to comment.