forked from finos/greenkey-asrtoolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (28 loc) · 771 Bytes
/
.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
---
language: python
dist: xenial
python:
- "3.6"
- "3.6-dev" # 3.6 development branch
- "3.7"
- "3.7-dev" # 3.7 development branch
- "3.8"
- "3.8-dev" # 3.8 development branch
# command to install dependencies
before_install:
- sudo apt-get update
- sudo apt-get install -y sox libsox-fmt-mp3
install:
- python3 -m pip install .[dev]
- python3 -m pip install -r requirements.txt
# command to run tests
script:
# validate black formatting
- python3 -m black --check .
# validate imports are sorted
- python3 -m isort --check-only .
# check for undefined variables (F821 is an excellent error for a linter to catch)
# add errors to ignore here as desired
- python3 -m flake8 .
# run test suite
- python -m pytest -v --doctest-modules