Commit e60c8845 authored by rusty1s's avatar rusty1s
Browse files

only lint on py > 2

parent 02470fd9
...@@ -3,6 +3,7 @@ sudo: required ...@@ -3,6 +3,7 @@ sudo: required
dist: trusty dist: trusty
matrix: matrix:
include: include:
- python: 2.7
- python: 3.5 - python: 3.5
- python: 3.6 - python: 3.6
addons: addons:
...@@ -16,14 +17,14 @@ before_install: ...@@ -16,14 +17,14 @@ before_install:
- export CC="gcc-4.9" - export CC="gcc-4.9"
- export CXX="g++-4.9" - export CXX="g++-4.9"
install: install:
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then pip install https://download.pytorch.org/whl/cpu/torch-1.1.0-cp35-cp35m-linux_x86_64.whl; fi - pip install numpy
- if [[ $TRAVIS_PYTHON_VERSION == 3.6 ]]; then pip install https://download.pytorch.org/whl/cpu/torch-1.1.0-cp36-cp36m-linux_x86_64.whl; fi - pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
- pip install pycodestyle - pip install pycodestyle
- pip install flake8 - pip install flake8
- pip install codecov - pip install codecov
script: script:
- pycodestyle . - if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then pycodestyle .; fi
- flake8 . - if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then flake8 .; fi
- python setup.py install - python setup.py install
- python setup.py test - python setup.py test
after_success: after_success:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment