OpenSlides/.travis.yml

33 lines
959 B
YAML
Raw Normal View History

2012-11-24 15:26:20 +01:00
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/
2012-11-24 15:26:20 +01:00
python:
- "3.4"
- "3.5"
- "3.6"
2016-09-09 00:50:27 +02:00
env:
- TRAVIS_NODE_VERSION="4"
before_install:
2016-12-09 18:38:40 +01:00
- nvm install $TRAVIS_NODE_VERSION
install:
2016-12-09 18:38:40 +01:00
- pip install --upgrade setuptools
- pip install --upgrade --requirement requirements.txt
- npm install
- node_modules/.bin/gulp --production
script:
2016-12-09 18:38:40 +01:00
- flake8 openslides tests
- isort --check-only --recursive openslides tests
- node_modules/.bin/gulp jshint
2016-12-09 18:38:40 +01:00
- DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.unit
- coverage report --fail-under=44
2016-12-09 18:38:40 +01:00
- DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.integration
- coverage report --fail-under=73
2016-12-09 18:38:40 +01:00
- DJANGO_SETTINGS_MODULE='tests.old.settings' ./manage.py test tests.old