Skip to main content

Continuous Integration support for Flask

Project description

https://img.shields.io/pypi/v/flask-ci.svg https://img.shields.io/pypi/dm/flask-ci.svg Build Status Requirements Status Status License

Continuous Integration with Flask

Table of contents

Installation

From PyPI:

$ pip install Flask-CI

Or by downloading the source and running:

$ python setup.py install

Latest git version:

$ pip install git+https://github.com/vicenteneto/flask-ci.git#egg=Flask-CI

Usage

Import the CICommand sub-manager:

from flask_ci.management.commands.ci import CICommand

Register the CICommand sub-manager to your primary Manager (within manage.py):

manager = Manager(create_app())
manager.add_command('ci', CICommand(settings))

Configure your continuous integration tool to run the following command:

$ python manage.py ci

Settings

  • PROJECT_APPS

    A list/tuple of the custom apps you’ve written for your project. Reports are generated only for the apps from this list.

  • CI_TASKS
    List of Continuous Integration reporters executed by python manage.py ci command.

    Default value: CI_TASKS = []

Reporters

Here is the reporters prebuild with Flask-CI.

  • flask_ci.tasks.run_pylint

    Runs Pylint over selected apps. Task-specific settings: PYLINT_RCFILE

  • flask_ci.tasks.run_nose

    Runs Nose over selected apps.

  • flask_ci.tasks.run_pep8

    Runs Pep8 tool over selected apps. Task-specific settings: PEP8_RCFILE

Contributing

Have a bug or a feature request? Please, open a GitHub issue.

Creator

Vicente Neto

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

Flask-CI-0.3.20.1.tar.gz (5.4 kB view hashes)

Uploaded Source

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