Skip to main content

Travis CI environment variables

Project description

Installation

$ [sudo] pip install travis-env

Features

  • add, get, delete Travis CI environment variables

Config

$ travis token
xxx
$ export TRAVIS_TOKEN="xxx"
# export TRAVIS_ENDPOINT="https://api.travis-ci.org"

Functions

function __doc__
travis_env.add(repo, var_name, var_value, public=False) add environment variable
travis_env.update(repo, **kwargs) update environment variable

CLI

usage __doc__
python -m travis_env.clear repo clear all environment variables
python -m travis_env.delete repo var_name ... delete environment variables by name
python -m travis_env.set repo var_name var_value set environment variable
python -m travis_env.vars repo print environment variable names

Examples

$ python -m travis_env.set WEBHOOK_URL url
$ python -m travis_env.vars
WEBHOOK_URL

Related projects

readme-generator

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

travis-env-2019.3.23.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

travis_env-2019.3.23-py2.py3-none-any.whl (183.2 kB view hashes)

Uploaded Python 2 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