OpenSlides/.travis.yml

109 lines
2.6 KiB
YAML
Raw Normal View History

2018-08-08 21:09:22 +02:00
dist: xenial
sudo: true
matrix:
include:
- language: python
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:
- flake8 openslides tests
- isort --check-only --diff --recursive openslides tests
- python -m mypy openslides/ tests/
2018-10-13 08:41:51 +02:00
- python -W ignore -m pytest --cov --cov-fail-under=70
- language: python
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
- python -m mypy openslides/ tests/
2018-10-13 08:41:51 +02:00
- python -W ignore -m pytest --cov --cov-fail-under=70
- language: node_js
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
2018-11-01 16:05:01 +01:00
- npm install -g @angular/cli
- ng --version
- cd client
install:
2018-11-01 16:05:01 +01:00
- npm install
script:
2018-11-01 16:05:01 +01:00
- npm run lint
- ng test --watch=false
- language: node_js
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
script:
- ng build
- language: node_js
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
script:
- ng build --prod