Skip to main content

stores results created during a CI in a special git branch

Project description

cico

Build Status PyPI License

cico stores results created during a CI in a special git branch

cico.py

from cico import TravisCI
from cico.results import Directory, File, Badge

TravisCI(
    repo = GitHub(USERNAME, REPO_NAME, TOKEN),
    branch = "ci-results",
    results = [
        Files("testresults.tap", destination="tap"),
        Directory("covhtml", destination="coverage"),
        Badge("badges/mybadge", png=True, label="My Badge", value=96,
              **anybadge_arguments),  # https://github.com/jongracecox/anybadge
    ]
).commit(
    message="build {build} on branch {branch}",  # commit message (optional)
    no_ci_push=True                              # push if no CI environment (default=False)
)

.travis.yml

after_script:
  - python cico.py

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

cico-0.1.3.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

cico-0.1.3-py3-none-any.whl (5.0 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