OpenSlides/.travis.yml

36 lines
1.0 KiB
YAML
Raw Normal View History

2012-11-24 15:26:20 +01:00
language: python
sudo: false
cache:
pip: true
yarn: true
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="10.5"
2016-09-09 00:50:27 +02:00
before_install:
2016-12-09 18:38:40 +01:00
- nvm install $TRAVIS_NODE_VERSION
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- pip install --upgrade setuptools pip
2016-12-09 18:38:40 +01:00
- pip install --upgrade --requirement requirements.txt
- pip freeze
- yarn
2016-12-09 18:38:40 +01:00
- node_modules/.bin/gulp --production
script:
2016-12-09 18:38:40 +01:00
- flake8 openslides tests
2017-08-23 20:51:06 +02:00
- if [ "`python --version`" \> "Python 3.5.0" ]; then isort --check-only --recursive openslides tests; fi
- python -m mypy openslides/
2016-12-09 18:38:40 +01:00
- node_modules/.bin/gulp jshint
- node_modules/.bin/karma start --browsers PhantomJS tests/karma/karma.conf.js
2016-12-09 18:38:40 +01:00
- DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.unit
2018-06-12 14:17:02 +02:00
- coverage report --fail-under=42
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
2017-08-22 14:17:20 +02:00
- DJANGO_SETTINGS_MODULE='tests.settings' ./manage.py test tests.old