Skip to content

Commit 9568ba0

Browse files
authored
Merge pull request #14 from cclauss/patch-1
Use Travis Continuous Integration to do testing
2 parents 1b33062 + 26fbbfe commit 9568ba0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
group: travis_latest
2+
language: python
3+
cache: pip
4+
python:
5+
- 2.7
6+
- 3.6
7+
#- nightly
8+
#- pypy
9+
#- pypy3
10+
matrix:
11+
allow_failures:
12+
- python: nightly
13+
- python: pypy
14+
- python: pypy3
15+
install:
16+
#- pip install -r requirements.txt
17+
- pip install flake8 # pytest # add another testing frameworks later
18+
before_script:
19+
# stop the build if there are Python syntax errors or undefined names
20+
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
21+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
22+
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
23+
script:
24+
- true # pytest --capture=sys # add other tests here
25+
notifications:
26+
on_success: change
27+
on_failure: change # `always` will be the setting once code changes slow down

0 commit comments

Comments
 (0)