1091ac4e76
Even though the documentation of travis still states, that xvfb can be initialized via init.d, it seems that all images are updated to use systemd, therefore it was switched to the travis service syntax.
129 lines
2.9 KiB
YAML
129 lines
2.9 KiB
YAML
dist: xenial
|
|
sudo: true
|
|
|
|
matrix:
|
|
include:
|
|
- language: python
|
|
name: "Server: Tests Python 3.6"
|
|
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:
|
|
- python -m mypy openslides/ tests/
|
|
- python -W ignore -m pytest --cov --cov-fail-under=70
|
|
|
|
- language: python
|
|
name: "Server: Tests Python 3.7"
|
|
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
|
|
- black --check --diff --py36 openslides tests
|
|
- python -m mypy openslides/ tests/
|
|
- python -W ignore -m pytest --cov --cov-fail-under=70
|
|
|
|
- language: node_js
|
|
name: "Client: Linting"
|
|
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 lint
|
|
|
|
- language: node_js
|
|
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-check
|
|
|
|
- language: node_js
|
|
name: "Client: Testing"
|
|
node_js:
|
|
- "10.5"
|
|
apt:
|
|
sources:
|
|
- google-chrome
|
|
packages:
|
|
- google-chrome-stable
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
services:
|
|
- xvfb
|
|
before_install:
|
|
- export CHROME_BIN=/usr/bin/google-chrome
|
|
- export DISPLAY=:99.0
|
|
- npm install -g @angular/cli
|
|
- ng --version
|
|
- cd client
|
|
install:
|
|
- npm install
|
|
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
|
|
script:
|
|
- ng build
|
|
|
|
- language: node_js
|
|
name: "Client: Production Build"
|
|
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
|