2012-11-24 15:26:20 +01:00
|
|
|
language: python
|
2018-08-08 21:09:22 +02:00
|
|
|
dist: xenial
|
|
|
|
sudo: true
|
2015-01-25 20:53:17 +01:00
|
|
|
cache:
|
2017-04-07 11:46:53 +02:00
|
|
|
pip: true
|
|
|
|
yarn: true
|
2012-11-24 15:26:20 +01:00
|
|
|
python:
|
2017-01-07 16:36:27 +01:00
|
|
|
- "3.6"
|
2018-08-08 21:09:22 +02:00
|
|
|
- "3.7"
|
2016-09-09 00:50:27 +02:00
|
|
|
env:
|
2018-06-26 10:08:40 +02:00
|
|
|
- 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
|
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
|
2018-08-25 13:52:43 +02:00
|
|
|
- pip install --upgrade --requirement requirements/development.txt
|
|
|
|
- pip install --upgrade .[big_mode]
|
2017-01-15 13:33:54 +01:00
|
|
|
- pip freeze
|
2018-08-28 09:33:50 +02:00
|
|
|
- cd client && npm install && cd ..
|
2014-08-16 09:25:18 +02:00
|
|
|
script:
|
2018-08-31 15:33:41 +02:00
|
|
|
- cd client && npm run-script lint && cd ..
|
2016-12-09 18:38:40 +01:00
|
|
|
- flake8 openslides tests
|
2018-07-09 23:22:26 +02:00
|
|
|
- isort --check-only --diff --recursive openslides tests
|
2017-08-23 20:51:06 +02:00
|
|
|
- python -m mypy openslides/
|
2018-08-31 15:33:41 +02:00
|
|
|
- pytest tests/old/ tests/integration/ tests/unit/ --cov --cov-fail-under=75
|