cclauss
commited on
Create .travis.yml
Browse filesOutput: https://travis-ci.org/huggingface/neuralcoref/jobs/393000348
- .travis.yml +27 -0
.travis.yml
ADDED
|
@@ -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
|