Updated .travis file.

This commit is contained in:
Norman Jäckel 2016-12-09 18:38:40 +01:00
parent 0bef3d751e
commit bb3bc0b8ae

View File

@ -11,21 +11,21 @@ python:
env:
- TRAVIS_NODE_VERSION="4"
before_install:
- "nvm install $TRAVIS_NODE_VERSION"
- nvm install $TRAVIS_NODE_VERSION
install:
- "pip install --upgrade setuptools"
- "pip install --upgrade --requirement requirements.txt"
- "npm install"
- "node_modules/.bin/gulp --production"
- pip install --upgrade setuptools
- pip install --upgrade --requirement requirements.txt
- npm install
- node_modules/.bin/gulp --production
script:
- "flake8 openslides tests"
- "isort --check-only --recursive openslides tests"
- "gulp jshint"
- flake8 openslides tests
- isort --check-only --recursive openslides tests
- node_modules/.bin/gulp jshint
- "DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.unit"
- "coverage report --fail-under=40"
- DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.unit
- coverage report --fail-under=44
- "DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.integration"
- "coverage report --fail-under=50"
- DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.integration
- coverage report --fail-under=73
- "DJANGO_SETTINGS_MODULE='tests.old.settings' ./manage.py test tests.old"
- DJANGO_SETTINGS_MODULE='tests.old.settings' ./manage.py test tests.old