GithubHelp home page GithubHelp logo

clement10601 / flask-ci Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vicenteneto/flask-ci

0.0 2.0 0.0 50 KB

Continuous Integration with Flask

Home Page: https://pythonhosted.org/Flask-CI/

License: MIT License

Python 100.00%

flask-ci's Introduction

Flask-CI

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

Consider you have this code:

# manage.py

from flask_script import Manager
from myapp import create_app
import settings

manager = Manager(create_app(settings))

if __name__ == "__main__":
    manager.run()

Import the CICommand sub-manager:

from flask_ci import CICommand

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

manager.add_command('ci', CICommand(settings))

Configure your continuous integration tool to run the following command:

$ python manage.py ci

Settings

  • CI_TASKS
    List of Continuous Integration reporters executed by python manage.py ci command.
  • PROJECT_APPS
    A list of the custom apps you’ve written for your project. Reports are generated only for the apps from this list.

Sample:

# settings.py

CI_TASKS = [
    'flask_ci.tasks.run_nose',
    'flask_ci.tasks.run_pep8',
    'flask_ci.tasks.run_pylint'
]

PROJECT_APPS = [
    'flask_ci_test',
    'flask_ci_test_users'
]

Reporters

Here is the reporters prebuild with Flask-CI.

  • 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.
  • flask_ci.tasks.run_pylint
    Runs Pylint over selected apps. Task-specific settings: PYLINT_RCFILE.

Contributing

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

Creator

Vicente Neto

Copyright and license

Copyright 2016-, Vicente Neto. This project is licensed under the MIT License.

Changes

0.9.4 - 2016-09-04

  • Updating requirements dependencies

0.3.25 - 2016-03-25

  • Fixing README usage error
  • Added a test application

0.3.26 -- 2016-03-26

  • Refactoring project architecture
  • Updating outdated requirements

0.4.15 -- 2016-04-15

  • Added Flask-Pylint plugin on pylint reports

0.4.22 -- 2016-04-22

  • Fixing nose tests task execution

3rd Party Stuff

Flask-CI is built with the help of FLask-Script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.