File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ diff=$( yapf -rd maxminddb tests)
4+
5+ if [[ $? != 0 ]]; then
6+ echo " yapf failed to run."
7+ echo " $diff "
8+ exit $?
9+ elif [[ $diff ]]; then
10+ echo " $diff "
11+ exit 1
12+ else
13+ exit 0
14+ fi
Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ before_install:
1717 - sudo make install
1818 - sudo ldconfig
1919 - cd ..
20- - pip install pylint coveralls
20+ - pip install coveralls
21+ - if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then pip install pylint yapf; fi
2122 - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi
2223
2324script :
2425 - if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then export MM_FORCE_EXT_TESTS=1; fi
2526 - CFLAGS="-Werror -Wall -Wextra" python setup.py test
26- - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pylint --rcfile .pylintrc maxminddb/*.py; fi
27+ - if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then pylint --rcfile .pylintrc maxminddb/*.py; fi
28+ - if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then ./.travis-yapf.sh; fi
2729
2830after_success :
2931 - coveralls
Original file line number Diff line number Diff line change 66* Fix issue where incorrect size was used when unpacking some types with the
77 pure Python reader. Reported by Lee Symes. GitHub #30.
88
9-
1091.3.0 (2017-03-13)
1110++++++++++++++++++
1211
You can’t perform that action at this time.
0 commit comments