e7230b7391
* seperate unittests and integration tests * moved old tests in seperat folder 'old' * created a testrunner that does not create a testdatabase, if only unittests are run * wrote some unit- and integration tests as examples * fixed user.get_short_name() to use the sort order from config * fixed wrong url_pattern in the user app
20 lines
630 B
YAML
20 lines
630 B
YAML
language: python
|
|
python:
|
|
- "3.3"
|
|
- "3.4"
|
|
install:
|
|
- "pip install -r requirements.txt"
|
|
- "npm install"
|
|
- "node_modules/.bin/bower install"
|
|
- "node_modules/.bin/gulp --production"
|
|
script:
|
|
- "flake8 --max-line-length=150 --statistics openslides tests"
|
|
|
|
- "DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.unit"
|
|
- "coverage report --show-missing --fail-under=35"
|
|
|
|
- "DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.integration"
|
|
- "coverage report --show-missing --fail-under=45"
|
|
|
|
- "DJANGO_SETTINGS_MODULE='tests.old.settings' ./manage.py test tests.old"
|