Skip to main content

.travis.yml generator

Project description

Install

$ [sudo] pip install travis-yml

How it works

based on .travis.yml known keys from Travis Documentation

Classes

travis_yml.TravisYML
method description
load(path) load from .travis.yml file
save(path='.travis.yml') save to file
@property description
data return dictionary with .travis.yml data

Examples

create .travis.yml from variables

>>> import travis_yml
>>> travis_yml.TravisYML(language="python", python=["3.4", "3.5"]).save(".travis.yml")

create .travis.yml with travis_yml.TravisYML subclass

>>> class MyTravis(travis_yml.TravisYML):
    language = "python"

    @property
    def python(self):
        versions = ["3.4", "3.5"]
        if "3 :: Only" not in open("classsifiers.txt").read():
            versions += ["2.7"]
        return versions
>>> MyTravis().save(".travis.yml")

Links

readme-md - README.md generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
travis_yml-2018.11.20-py2.py3-none-any.whl (3.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3
travis-yml-2018.11.20.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page