OpenSlides/.travis.yml
Emanuel Schütze e611b46784 Added karma tests for angular.js to travis.
Installed required dependencies to run karma test in phantomjs which
is a supported browser by travis.
2017-03-08 23:46:04 +01:00

35 lines
1.0 KiB
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"
- "3.6"
env:
- TRAVIS_NODE_VERSION="4"
before_install:
- nvm install $TRAVIS_NODE_VERSION
install:
- pip install --upgrade setuptools
- pip install --upgrade --requirement requirements.txt
- pip freeze
- npm install
- node_modules/.bin/gulp --production
script:
- flake8 openslides tests
- isort --check-only --recursive openslides tests
- node_modules/.bin/gulp jshint
- node_modules/.bin/karma start --browsers PhantomJS tests/karma/karma.conf.js
- 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=74
- DJANGO_SETTINGS_MODULE='tests.old.settings' ./manage.py test tests.old