travis check for createsettings and migration, documented server
debugging
This commit is contained in:
parent
44846da4cd
commit
c7f87dfe1b
19
.travis.yml
19
.travis.yml
@ -38,6 +38,25 @@ matrix:
|
|||||||
- python -m mypy openslides/ tests/
|
- python -m mypy openslides/ tests/
|
||||||
- python -W ignore -m pytest --cov --cov-fail-under=70
|
- python -W ignore -m pytest --cov --cov-fail-under=70
|
||||||
|
|
||||||
|
- language: python
|
||||||
|
name: "Server: Tests Startup Routine Python 3.7"
|
||||||
|
cache:
|
||||||
|
pip: true
|
||||||
|
python:
|
||||||
|
- "3.7"
|
||||||
|
install:
|
||||||
|
- python --version
|
||||||
|
- pip install --upgrade setuptools pip
|
||||||
|
- pip install --upgrade --requirement requirements/development.txt
|
||||||
|
- pip install --upgrade .[big_mode]
|
||||||
|
- pip freeze
|
||||||
|
script:
|
||||||
|
- set -e
|
||||||
|
- python manage.py createsettings
|
||||||
|
- python manage.py migrate
|
||||||
|
- python manage.py runserver --noreload & (sleep 15 && kill $(ps aux | grep 'manage.py runserver' | head -n -1 | awk '{print $2}'))
|
||||||
|
- set +e
|
||||||
|
|
||||||
- language: node_js
|
- language: node_js
|
||||||
name: "Client: Linting"
|
name: "Client: Linting"
|
||||||
node_js:
|
node_js:
|
||||||
|
@ -70,6 +70,25 @@ When debugging something email related change the email backend to console::
|
|||||||
|
|
||||||
$ python manage.py start --debug-email
|
$ python manage.py start --debug-email
|
||||||
|
|
||||||
|
|
||||||
|
d.a Debugging the Server
|
||||||
|
''''''''''''''''''''''''
|
||||||
|
|
||||||
|
If you wish to have even further debugging, enable `django-extensions
|
||||||
|
<https://django-extensions.readthedocs.io/>`_,
|
||||||
|
in the ``settings.py`` by adding ``django_extensions`` to the list of
|
||||||
|
``INSTALLED_PLLUGINS``. Make sure, you add the following lines to your
|
||||||
|
``requirements/development.txt``::
|
||||||
|
|
||||||
|
Werkzeug
|
||||||
|
pyparsing
|
||||||
|
pydot
|
||||||
|
django-extensions
|
||||||
|
|
||||||
|
and install them via pip. You can start the enhanced debugging-server via::
|
||||||
|
|
||||||
|
$ python manage.py runserver_plus
|
||||||
|
|
||||||
e. Setup and start the client
|
e. Setup and start the client
|
||||||
'''''''''''''''''''''''''''''
|
'''''''''''''''''''''''''''''
|
||||||
|
|
||||||
@ -125,6 +144,10 @@ a. Running server tests
|
|||||||
To run some server tests see `.travis.yml
|
To run some server tests see `.travis.yml
|
||||||
<https://github.com/OpenSlides/OpenSlides/blob/master/.travis.yml>`_.
|
<https://github.com/OpenSlides/OpenSlides/blob/master/.travis.yml>`_.
|
||||||
|
|
||||||
|
You can generate an class-structure image, when having `django_extensions` enabled (see above)
|
||||||
|
|
||||||
|
$ python manage.py graph_models -a -g -o my_project_visualized.png
|
||||||
|
|
||||||
|
|
||||||
b. Client tests and commands
|
b. Client tests and commands
|
||||||
''''''''''''''''''''''''''''
|
''''''''''''''''''''''''''''
|
||||||
|
Loading…
Reference in New Issue
Block a user