OpenSlides/.travis.yml

28 lines
745 B
YAML
Raw Normal View History

2012-11-24 15:26:20 +01:00
language: python
2018-08-08 21:09:22 +02:00
dist: xenial
sudo: true
cache:
pip: true
yarn: true
2012-11-24 15:26:20 +01:00
python:
- "3.6"
2018-08-08 21:09:22 +02:00
- "3.7"
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
- pip install --upgrade --requirement requirements/development.txt
- pip install --upgrade .[big_mode]
- pip freeze
- cd client && npm install && cd ..
script:
- cd client && npm run-script lint && cd ..
2016-12-09 18:38:40 +01:00
- flake8 openslides tests
- isort --check-only --diff --recursive openslides tests
2017-08-23 20:51:06 +02:00
- python -m mypy openslides/
- pytest tests/old/ tests/integration/ tests/unit/ --cov --cov-fail-under=75