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
Release files for traviscli 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| traviscli-0.3.2.tar.gz | 10.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| traviscli-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.9 kB
Release files / traviscli-0.3.2.tar.gz
| Download URL | traviscli-0.3.2.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2236da8bdba857b7db3375c00512694dfb5e71f83c659ec78f7d9c3add09b6a
|
|
BLAKE2b-256 checksum How to use checksums |
cc6a38d580a6a0978bc64cb306272bfbae23571f27f42927eb98f5c28a5ee6fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.9
|
Release files / traviscli-0.3.2-py3-none-any.whl
| Download URL | traviscli-0.3.2-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca1a481a166da7eb851aa5b5dc40b0d48bf6191c38a4141f44bb35219eea49ad
|
|
BLAKE2b-256 checksum How to use checksums |
6962c038494a019bc57829135069b3a3a025adf7a5eb5730bb6cdc6ac49bde81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.9
|