Skip to main content

A build help tool

Project description

License: MIT PyPI version Maintenance macOS

forthebadge made-with-python

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:

image info

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)

Uploaded Source

Built Distribution

traviscli-0.3.2-py3-none-any.whl (11.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page