OpenSlides/.travis.yml
Emanuel Schuetze e980e20042 Fix travis: Upgrade setuptools before install.
Upgrade setuptools to 18.5+.
Upgrade beautifulsoup4 to 4.5+ to work with latest html5lib.
2016-07-27 14:00:02 +02:00

28 lines
869 B
YAML

language: python
sudo: false
cache:
directories:
- node_modules
- $HOME/virtualenv/python$TRAVIS_PYTHON_VERSION/lib/python$TRAVIS_PYTHON_VERSION/site-packages/
- $HOME/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/
python:
- "3.4"
- "3.5"
install:
- "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"
- "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.integration"
- "coverage report --fail-under=50"
- "DJANGO_SETTINGS_MODULE='tests.old.settings' ./manage.py test tests.old"