Skip to content

Commit

Permalink
Merge pull request yfeng95#22 from cclauss/patch-1
Browse files Browse the repository at this point in the history
Use Travis CI to run tests on all pull requests
  • Loading branch information
yfeng95 authored May 3, 2018
2 parents 5b36597 + 212548b commit e7b0637
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
group: travis_latest
language: python
cache: pip
python:
- 2.7
- 3.6
#- nightly
#- pypy
#- pypy3
matrix:
allow_failures:
- python: nightly
- python: pypy
- python: pypy3
install:
#- pip install -r requirements.txt
- pip install flake8 tensorflow # pytest # add another testing frameworks later
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
script:
- python run_basics.py # Can run only with python and tensorflow
notifications:
on_success: change
on_failure: change # `always` will be the setting once code changes slow down

0 comments on commit e7b0637

Please sign in to comment.