Commit 8495d502 authored by Yuxin Wu's avatar Yuxin Wu

fix travis

parent 0aa7446f
...@@ -25,12 +25,12 @@ matrix: ...@@ -25,12 +25,12 @@ matrix:
- env: TF_VERSION=0.12.1 TF_TYPE=nightly - env: TF_VERSION=0.12.1 TF_TYPE=nightly
install: install:
- echo $TRAVIS_PYTHON_VERSION # some packages on travis seem too old to work
- pip install -U flake8 opencv-python - pip install -U pip packaging
- pip install flake8 opencv-python
# Here we use opencv-python to overcome some travis probelms. # Here we use opencv-python to overcome some travis probelms.
# Users are not recommended to use opencv-python because it brings issues working on GPU # Users are not recommended to use opencv-python because it brings issues working on GPU
# together with tensorflow. # together with tensorflow.
# - if [ -e requirements.txt ]; then pip install -r requirements.txt;else pip install -r requirements.pip;fi
- ./tests/install-tensorflow.sh - ./tests/install-tensorflow.sh
- pip install . - pip install .
...@@ -42,7 +42,6 @@ before_script: ...@@ -42,7 +42,6 @@ before_script:
script: script:
- flake8 . - flake8 .
- cd examples && flake8 . - cd examples && flake8 .
# - export PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR
- cd $TRAVIS_BUILD_DIR && python tests/test_examples.py - cd $TRAVIS_BUILD_DIR && python tests/test_examples.py
notifications: notifications:
......
...@@ -48,7 +48,7 @@ for s in scripts: ...@@ -48,7 +48,7 @@ for s in scripts:
setup( setup(
version=__version__, version=__version__,
install_requires=req, install_requires=req,
tests_require=['flake8'] tests_require=['flake8'],
extras_require={ extras_require={
'all': extra_req 'all': extra_req
}, },
......
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