File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ matrix:
1414 dist : trusty
1515 - python : 3.7
1616 dist : xenial
17+ env :
18+ - RUN_SNYK=1
19+ - RUN_LINTER=1
1720 - python : nightly
1821 dist : xenial
1922 - python : pypy
@@ -32,18 +35,18 @@ before_install:
3235 - sudo ldconfig
3336 - cd ..
3437 - pip install -e git+https://github.com/maxmind/MaxMind-DB-Reader-python#egg=maxminddb
35- - " if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then sudo apt-get install -y nodejs; npm install -g snyk; fi"
38+ - " if [[ $RUN_SNYK ]]; then sudo apt-get install -y nodejs; npm install -g snyk; fi"
3639install :
3740 - pip install -r requirements.txt
3841 - pip install requests_mock pylint coveralls yapf
39- - " if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then snyk test --org=maxmind; fi"
42+ - " if [[ $RUN_SNYK ]]; then snyk test --org=maxmind; fi"
4043script :
4144 - coverage run --source=geoip2 setup.py test
42- - " if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then ./.travis-pylint.sh; fi"
43- - " if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then ./.travis-yapf.sh; fi"
45+ - " if [[ $RUN_LINTER ]]; then ./.travis-pylint.sh; fi"
46+ - " if [[ $RUN_LINTER ]]; then ./.travis-yapf.sh; fi"
4447after_success :
4548 - coveralls
46- - " if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false ' && $TRAVIS_PYTHON_VERSION == '3.7 ' ]]; then snyk monitor --org=maxmind --project-name=maxmind/GeoIP2-python; fi"
49+ - " if [[ $RUN_SNYK && $TRAVIS_BRANCH == 'master ' && $TRAVIS_PULL_REQUEST == 'false ' ]]; then snyk monitor --org=maxmind --project-name=maxmind/GeoIP2-python; fi"
4750notifications :
4851 email :
4952 on_failure : always
You can’t perform that action at this time.
0 commit comments