forked from jazzband/django-dbbackup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
105 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Contributing guide | ||
================== | ||
|
||
Dbbackup is a free license software where all help are welcomed. This | ||
documentation aims to help users or developers to bring their contributions | ||
to this project. | ||
|
||
Submit a bug, issue or enhancement | ||
---------------------------------- | ||
|
||
All communication are made with `GitHub issues`_. Do not hesitate to open a | ||
issue if: | ||
|
||
- You have an improvement idea | ||
- You found a bug | ||
- You've got a question | ||
- More generaly something seems wrong for you | ||
|
||
.. _`GitHub issues`: https://github.com/django-dbbackup/django-dbbackup/issues | ||
|
||
Make a patch | ||
------------ | ||
|
||
We use `GitHub pull requests`_ for manage all patches. For a better handling | ||
of requests we advise you to: | ||
|
||
#. Fork the project and make a new branch | ||
#. Make your changes with tests if possible and documentation if needed | ||
#. Push changes to your fork repository and test it with Travis | ||
#. If succeed, open a pull request | ||
#. Upset us until we give you an answer | ||
|
||
.. _`GitHub pull requests`: https://github.com/django-dbbackup/django-dbbackup/pulls | ||
|
||
Test code | ||
~~~~~~~~~ | ||
|
||
You can test your code in local machine with the ``runtests.py`` script: | ||
|
||
:: | ||
|
||
cd tests | ||
python runtests.py | ||
|
||
We advise you to launch it with Python 2 & 3 before push and try it in Travis. | ||
|
||
Online CI | ||
--------- | ||
|
||
We use `Travis`_ for tests Dbbackup with a matrix of components' version: Several version of Django and several versions of Python including 2, 3 and PyPy. | ||
|
||
.. image:: https://api.travis-ci.org/django-dbbackup/django-dbbackup.svg | ||
:target: https://travis-ci.org/django-dbbackup/django-dbbackup | ||
|
||
Code coverage is ensured with `Coveralls`_ and has not yet minimum coverage limit. | ||
|
||
.. image:: https://coveralls.io/repos/django-dbbackup/django-dbbackup/badge.svg?branch=master&service=github | ||
:target: https://coveralls.io/github/django-dbbackup/django-dbbackup?branch=master | ||
|
||
.. _Travis: https://travis-ci.org/django-dbbackup/django-dbbackup | ||
.. _Coveralls: https://coveralls.io/github/django-dbbackup/django-dbbackup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
================================ | ||
Django project for test Dbbackup | ||
================================ | ||
|
||
This module is a fake Django project for test Django Dbbackup. It contains | ||
project settings in ``runtests.py`` and an application named :mod:`testapp`. | ||
|
||
Tests are stored in :mod:`dbbackup.tests` and for run them you must launch: | ||
|
||
:: | ||
|
||
python runtests.py | ||
|
||
In fact, ``runtests.py`` acts as a ``manage.py`` file and all Django command | ||
are available. So you could launch: | ||
|
||
:: | ||
|
||
python runtests.py shell | ||
|
||
For get a Python shell configured with the test project. Also all test | ||
command options are available and usable for run only some chosen tests. | ||
See `Django test command documentation`_ for more informations about it. | ||
|
||
.. _`Django test command documentation`: https://docs.djangoproject.com/en/stable/topics/testing/overview/#running-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters