2018-08-08 21:09:22 +02:00
|
|
|
dist: xenial
|
|
|
|
sudo: true
|
2018-09-02 11:05:09 +02:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- language: python
|
2018-11-30 11:59:35 +01:00
|
|
|
name: "Server: Tests Python 3.6"
|
2018-09-02 11:05:09 +02:00
|
|
|
cache:
|
|
|
|
pip: true
|
|
|
|
python:
|
|
|
|
- "3.6"
|
|
|
|
install:
|
|
|
|
- python --version
|
|
|
|
- pip install --upgrade setuptools pip
|
|
|
|
- pip install --upgrade --requirement requirements/development.txt
|
|
|
|
- pip install --upgrade .[big_mode]
|
|
|
|
- pip freeze
|
|
|
|
script:
|
2018-10-28 10:04:52 +01:00
|
|
|
- python -m mypy openslides/ tests/
|
2018-10-13 08:41:51 +02:00
|
|
|
- python -W ignore -m pytest --cov --cov-fail-under=70
|
2018-09-02 11:05:09 +02:00
|
|
|
|
|
|
|
- language: python
|
2018-11-30 11:59:35 +01:00
|
|
|
name: "Server: Tests Python 3.7"
|
2018-09-02 11:05:09 +02:00
|
|
|
cache:
|
|
|
|
pip: true
|
|
|
|
python:
|
|
|
|
- "3.7"
|
|
|
|
install:
|
|
|
|
- python --version
|
|
|
|
- pip install --upgrade setuptools pip
|
|
|
|
- pip install --upgrade --requirement requirements/development.txt
|
|
|
|
- pip install --upgrade .[big_mode]
|
|
|
|
- pip freeze
|
|
|
|
script:
|
|
|
|
- flake8 openslides tests
|
|
|
|
- isort --check-only --diff --recursive openslides tests
|
2019-01-06 16:15:56 +01:00
|
|
|
- black --check --diff --py36 openslides tests
|
2018-10-28 10:04:52 +01:00
|
|
|
- python -m mypy openslides/ tests/
|
2018-10-13 08:41:51 +02:00
|
|
|
- python -W ignore -m pytest --cov --cov-fail-under=70
|
2018-09-02 11:05:09 +02:00
|
|
|
|
|
|
|
- language: node_js
|
2018-11-30 11:59:35 +01:00
|
|
|
name: "Client: Linting"
|
2018-09-02 11:05:09 +02:00
|
|
|
node_js:
|
2018-10-15 11:52:57 +02:00
|
|
|
- "10.5"
|
2018-09-02 11:05:09 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
before_install:
|
2018-11-01 16:05:01 +01:00
|
|
|
- npm install -g @angular/cli
|
2018-09-02 11:05:09 +02:00
|
|
|
- ng --version
|
|
|
|
- cd client
|
|
|
|
install:
|
2018-11-01 16:05:01 +01:00
|
|
|
- npm install
|
2018-09-02 11:05:09 +02:00
|
|
|
script:
|
2018-11-01 16:05:01 +01:00
|
|
|
- npm run lint
|
|
|
|
|
|
|
|
- language: node_js
|
2018-11-30 11:59:35 +01:00
|
|
|
name: "Client: Code Formatting Check"
|
|
|
|
node_js:
|
|
|
|
- "10.5"
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
before_install:
|
|
|
|
- npm install -g @angular/cli
|
|
|
|
- ng --version
|
|
|
|
- cd client
|
|
|
|
install:
|
|
|
|
- npm install
|
|
|
|
script:
|
|
|
|
- npm run prettify-all
|
|
|
|
|
|
|
|
- language: node_js
|
|
|
|
name: "Client: Testing"
|
2018-11-01 16:05:01 +01:00
|
|
|
node_js:
|
|
|
|
- "10.5"
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- google-chrome
|
|
|
|
packages:
|
|
|
|
- google-chrome-stable
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
before_install:
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
|
|
|
- export CHROME_BIN=/usr/bin/google-chrome
|
|
|
|
- export DISPLAY=:99.0
|
|
|
|
- npm install -g @angular/cli
|
|
|
|
- ng --version
|
|
|
|
- cd client
|
|
|
|
install:
|
|
|
|
- npm install
|
2018-11-30 11:59:35 +01:00
|
|
|
script:
|
|
|
|
- ng test --watch=false
|
|
|
|
|
|
|
|
- language: node_js
|
|
|
|
name: "Client: Build"
|
|
|
|
node_js:
|
|
|
|
- "10.5"
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
before_install:
|
|
|
|
- npm install -g @angular/cli
|
|
|
|
- ng --version
|
|
|
|
- cd client
|
|
|
|
install:
|
|
|
|
- npm install
|
2018-11-01 16:05:01 +01:00
|
|
|
script:
|
|
|
|
- ng build
|
|
|
|
|
|
|
|
- language: node_js
|
2018-11-30 11:59:35 +01:00
|
|
|
name: "Client: Production Build"
|
2018-11-01 16:05:01 +01:00
|
|
|
node_js:
|
|
|
|
- "10.5"
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
before_install:
|
|
|
|
- npm install -g @angular/cli
|
|
|
|
- ng --version
|
|
|
|
- cd client
|
|
|
|
install:
|
|
|
|
- npm install
|
|
|
|
script:
|
|
|
|
- ng build --prod
|