Automatically bump package version and push tag to master on a successful build on master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Travis Bump Version

Automatically bump version when merging to master.


Travis CI (Ubuntu) Coverage PyPI Licence
Travis Coveralls PyPIVersionPyPIPythons License


usage: travis-bump-version [-h] --api-token API_TOKEN --repo REPO
                           [FILE [FILE ...]]

Automatically bump version on successful Travis-CI builds.

positional arguments:
  FILE                  bump version on FILE

optional arguments:
  -h, --help            show this help message and exit
  --api-token API_TOKEN
                        GitHub API token. Always make sure this variable is
                        encrypted first.
  --repo REPO           Name of repo on GitHub, eg user/repo.

On Travis-CI you can use the TRAVIS_REPO_SLUG variable to determine the current repository. See this guide on how to generate an API token. Remember to encrypt it first using travis encrypt --add first!