Skip to content

Commit 26fbbfe

Browse files
author
cclauss
authored
Use Travis Continuous Integration to do testing
Travis CI can be used to do automated testing on all pull requests before they are reviewed and merged. This service is free to open source projects like this one. The CI service must be turned on @threerocks going to https://travis-ci.com and logging in with GitHub credentials.
1 parent 51ca3d5 commit 26fbbfe

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.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)