mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 20:38:54 +00:00
Run flake8 using Travis CI
This commit is contained in:
parent
ce6b82c92d
commit
e9d29726bc
@ -34,11 +34,13 @@ before_install:
|
|||||||
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then source venv/bin/activate; fi
|
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then source venv/bin/activate; fi
|
||||||
- pip install -U pip
|
- pip install -U pip
|
||||||
- pip install -U coveralls
|
- pip install -U coveralls
|
||||||
|
- pip install -U flake8
|
||||||
install:
|
install:
|
||||||
- pip install -Ur requirements.txt
|
- pip install -Ur requirements.txt
|
||||||
- python setup.py develop
|
- python setup.py develop
|
||||||
- rm -rf build
|
- rm -rf build
|
||||||
script:
|
script:
|
||||||
|
- flake8
|
||||||
- export COVERAGE_PYTHON_VERSION=python-${TRAVIS_PYTHON_VERSION:0:1}
|
- export COVERAGE_PYTHON_VERSION=python-${TRAVIS_PYTHON_VERSION:0:1}
|
||||||
- export RUN_TESTS="coverage run --source=thefuck,tests -m py.test -v --capture=sys tests"
|
- export RUN_TESTS="coverage run --source=thefuck,tests -m py.test -v --capture=sys tests"
|
||||||
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 && $TRAVIS_OS_NAME != "osx" ]]; then $RUN_TESTS --enable-functional; fi
|
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 && $TRAVIS_OS_NAME != "osx" ]]; then $RUN_TESTS --enable-functional; fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user