File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,18 @@ before_install:
3535 - sudo ldconfig
3636 - cd ..
3737 - pip install -e git+https://github.com/maxmind/MaxMind-DB-Reader-python#egg=maxminddb
38- - " if [[ $RUN_SNYK ]]; then sudo apt-get install -y nodejs; npm install -g snyk; fi"
38+ - " if [[ $RUN_SNYK && $SNYK_TOKEN ]]; then sudo apt-get install -y nodejs; npm install -g snyk; fi"
3939install :
4040 - pip install -r requirements.txt
4141 - pip install requests_mock pylint coveralls yapf
42- - " if [[ $RUN_SNYK ]]; then snyk test --org=maxmind; fi"
42+ - " if [[ $RUN_SNYK && $SNYK_TOKEN ]]; then snyk test --org=maxmind; fi"
4343script :
4444 - coverage run --source=geoip2 setup.py test
4545 - " if [[ $RUN_LINTER ]]; then ./.travis-pylint.sh; fi"
4646 - " if [[ $RUN_LINTER ]]; then ./.travis-yapf.sh; fi"
4747after_success :
4848 - coveralls
49- - " if [[ $RUN_SNYK && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then snyk monitor --org=maxmind --project-name=maxmind/GeoIP2-python; fi"
49+ - " if [[ $RUN_SNYK && $SNYK_TOKEN && $ TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then snyk monitor --org=maxmind --project-name=maxmind/GeoIP2-python; fi"
5050notifications :
5151 email :
5252 on_failure : always
You can’t perform that action at this time.
0 commit comments