2012-11-24 15:26:20 +01:00
|
|
|
language: python
|
2015-01-25 20:53:17 +01:00
|
|
|
sudo: false
|
|
|
|
cache:
|
2017-04-07 11:46:53 +02:00
|
|
|
pip: true
|
|
|
|
yarn: true
|
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"
|
2017-01-07 16:36:27 +01:00
|
|
|
- "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
|
2017-04-07 11:46:53 +02:00
|
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
|
|
- export PATH="$HOME/.yarn/bin:$PATH"
|
2015-01-05 15:01:42 +01:00
|
|
|
install:
|
2017-04-07 11:46:53 +02:00
|
|
|
- pip install --upgrade setuptools pip
|
2016-12-09 18:38:40 +01:00
|
|
|
- pip install --upgrade --requirement requirements.txt
|
2017-01-15 13:33:54 +01:00
|
|
|
- pip freeze
|
2017-04-07 11:46:53 +02:00
|
|
|
- yarn
|
2016-12-09 18:38:40 +01:00
|
|
|
- node_modules/.bin/gulp --production
|
2014-08-16 09:25:18 +02:00
|
|
|
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
|
2017-03-08 16:21:05 +01:00
|
|
|
- node_modules/.bin/karma start --browsers PhantomJS tests/karma/karma.conf.js
|
2015-01-22 18:29:12 +01:00
|
|
|
|
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
|
2015-01-22 18:29:12 +01:00
|
|
|
|
2016-12-09 18:38:40 +01:00
|
|
|
- DJANGO_SETTINGS_MODULE='tests.settings' coverage run ./manage.py test tests.integration
|
2018-02-02 12:29:18 +01:00
|
|
|
- coverage report --fail-under=73
|
2015-01-22 18:29:12 +01:00
|
|
|
|
2017-08-22 14:17:20 +02:00
|
|
|
- DJANGO_SETTINGS_MODULE='tests.settings' ./manage.py test tests.old
|