-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (31 loc) · 1014 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
29
30
31
32
33
34
35
36
37
dist: xenial
language: python
cache: pip
python:
- 3.7
install :
- pip install pre-commit
- pip install flake8
- pip install black
- pip install codecov
- pip install coverage
before_script:
# set team ID to test coverage
- export FAH_TEAMID=263581
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
#- true # add other tests here
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
- black .
- pre-commit run --all-files
- coverage run app/folding-stats.py
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down
# command to run tests
after_success:
#sudo: required
- bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'