A build help tool
Project description
Introduction
This is a simple CLI that allows you to update a version.txt file with a build number.
Install traviscli in your virtual environment
This utility is distributed via pypi packages.
Install like this:
pip3 install traviscli
How to use
traviscli --help
Usage: traviscli [OPTIONS]
Use this command to get the Travis CI build number of your project. Assumes
you are using Semantic Versioning
Options:
-b, --build-count INTEGER Number builds to check.
-r, --repo-slug TEXT something thing like hasii2011/PyUt. [required]
-f, --file PATH Relative location of version text file
--major-version INTEGER Change the major number to the specified one
--minor-version INTEGER Change the minor number to the specified one
--patch-version INTEGER Change the patch number to the specified one
--version Show the version and exit.
--help Show this message and exit.
How to get your TravisCI Application Token
Go to your TravisCI Profile-->Settings-->Settings
Tab
For example:
Where to put configuration token
Create a file named .travis-cli.ini
in your home directory (or where $HOME
points to)
Configuration file format
[TRAVISCI]
travisci_api_token = Your Token goes here
Version file format
The version string in your version file should follow the rules for semantic versioning
For example, here is a correctly formatted version string
6.2.1+.500
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
traviscli-0.3.2.tar.gz
(10.3 kB
view hashes)
Built Distribution
traviscli-0.3.2-py3-none-any.whl
(11.5 kB
view hashes)
Close
Hashes for traviscli-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca1a481a166da7eb851aa5b5dc40b0d48bf6191c38a4141f44bb35219eea49ad |
|
MD5 | ac0d9f513a4ce9a03ad6b734c097ab4e |
|
BLAKE2b-256 | 6962c038494a019bc57829135069b3a3a025adf7a5eb5730bb6cdc6ac49bde81 |