forked from asyml/texar-pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ZhitingHu
committed
May 3, 2019
1 parent
5129e0e
commit 2782c15
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
sudo: required | ||
language: python | ||
python: | ||
- "3.5" | ||
- "3.6" | ||
|
||
install: | ||
- pip install -e .[torch] | ||
- pip install flake8 | ||
|
||
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. Texar limits lines to a maximum of 80 chars. | ||
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=80 --statistics | ||
|
||
script: | ||
# units test | ||
- pytest | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters