2012-11-24 15:26:20 +01:00
|
|
|
language: python
|
2015-01-25 20:53:17 +01:00
|
|
|
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/
|
2012-11-24 15:26:20 +01:00
|
|
|
python:
|
2014-08-16 09:25:18 +02:00
|
|
|
- "3.4"
|
2015-10-24 19:02:43 +02:00
|
|
|
- "3.5"
|
2015-01-05 15:01:42 +01:00
|
|
|
install:
|
2015-01-25 20:53:17 +01:00
|
|
|
- "pip install --upgrade --requirement requirements.txt"
|
2015-01-05 15:01:42 +01:00
|
|
|
- "npm install"
|
2014-08-16 09:25:18 +02:00
|
|
|
script:
|
2015-02-17 21:21:52 +01:00
|
|
|
- "flake8 openslides tests"
|
2015-01-21 08:57:45 +01:00
|
|
|
- "isort --check-only --recursive openslides tests"
|
2016-02-16 00:57:45 +01:00
|
|
|
- "gulp jshint"
|
2015-01-22 18:29:12 +01:00
|
|
|
|
|
|
|
- "DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.unit"
|
2015-10-24 19:02:43 +02:00
|
|
|
- "coverage report --fail-under=40"
|
2015-01-22 18:29:12 +01:00
|
|
|
|
|
|
|
- "DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.integration"
|
2015-02-17 21:21:52 +01:00
|
|
|
- "coverage report --fail-under=50"
|
2015-01-22 18:29:12 +01:00
|
|
|
|
|
|
|
- "DJANGO_SETTINGS_MODULE='tests.old.settings' ./manage.py test tests.old"
|