File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ python setup.py install
3+ pylint geoip2
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ diff=$( yapf -rd geoip2 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 @@ -31,7 +31,8 @@ install:
3131 - " if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install ipaddr; fi"
3232script :
3333 - coverage run --source=geoip2 setup.py test
34- - " if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pylint geoip2; fi"
34+ - " if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then ./.travis-pylint.sh; fi"
35+ - " if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then ./.travis-yapf.sh; fi"
3536after_success :
3637 - coveralls
3738notifications :
You can’t perform that action at this time.
0 commit comments