Skip to content

Commit

Permalink
adding CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhitingHu committed May 3, 2019
1 parent 5129e0e commit 2782c15
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@


[![Build Status](https://travis-ci.org/ZhitingHu/texar-pytorch.svg?branch=master)](https://travis-ci.org/ZhitingHu/texar-pytorch)

# Texar in Pytorch

The Pytorch version should keep the same with the [TF version](https://github.com/asyml/texar) in terms of:
Expand Down

0 comments on commit 2782c15

Please sign in to comment.