Continuous Integration with Flask.
- Installation
- Usage
- Settings
- Reporters
- Changes
- Contributing
- Creator
- Copyright and License
- Changes
- 3rd Party Stuff
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
Consider you have this code:
# manage.py
from flask_script import Manager
from myapp import app, settings
manager = Manager(app.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
CI_TASKS- List of Continuous Integration reporters executed by
python manage.py cicommand.
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'
)
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.
https://github.com/vicenteneto
Have a bug or a feature request? Please, open a GitHub issue.
Vicente Neto (creator) - <https://github.com/vicenteneto>
Clement - <https://github.com/clement10601>
Copyright 2016-, Vicente Neto. This project is licensed under the MIT License.
- Unit tests
- Integration tests
- Code refactoring
- Updating requirements dependencies
- Python3 compatible
- Updating requirements dependencies
- Fixing README usage error
- Added a test application
- Refactoring project architecture
- Updating outdated requirements
- Added Flask-Pylint plugin on pylint reports
- Fixing nose tests task execution
Flask-CI is built with the help of Flask-Script.