-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
38 lines (36 loc) · 1.05 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Adjust environment
#dist: xenial
#sudo: required
# Set up matrix for multiple languages check.
jobs:
include:
# Check for python 3.8
- name: "Python 3.8 on Linux"
language: python
python: 3.8
os: linux
install:
# Use newest pip and install check tools.
- python -m pip install --upgrade pip
- pip install -r requirements.txt
- pip install -r dev_requirements.txt
script:
# Test for python static analysis.
- flake8 --ignore E121,E123,E126,E226,E24,E704,W503,W504,E741,N818
# Unit testing
- pytest --cov=./lexos
- codecov
# Doc style, at the moment only test files under models and receivers.
- pydocstyle lexos/models/
- pydocstyle lexos/receivers/
# Check for node_js 10.x.
- name: "Node.js 10.x on Linux"
language: node_js
node_js: 10
# Install dependencies.
before_install:
- cd ./lexos/frontend
install:
- npm install
script:
- ./node_modules/.bin/eslint ./js/*.js