forked from ywangd/stash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
22 lines (20 loc) · 811 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
language: python
python:
- "2.7"
- "3.6"
# command to install dependencies
install:
- "pip install -U pyparsing==2.0.1"
- "pip install -U pytest>=3.6.0"
- "pip install -U flake8>=3.5.0"
# install modules shipped with pythonista
- "pip install -r tests/pythonista_modules.txt"
before_script:
# 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
# show pytest version
- py.test --version
# command to run tests
script: py.test tests/ --ignore=tests/system/data/ --showlocals --verbose --show-capture=all --log-level=debug