File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,12 @@ before_install:
3636 if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then
3737 sudo apt-get install -y nodejs;
3838 npm install -g snyk;
39- pip install -r requirements.txt;
4039 fi
4140
42- install :
43- - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then snyk test --org=maxmind; fi
44-
4541script :
4642 - if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then export MM_FORCE_EXT_TESTS=1; fi
4743 - CFLAGS="-Werror -Wall -Wextra" coverage run --source maxminddb setup.py test
44+ - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then snyk test --org=maxmind --file=requirements.txt; fi
4845 - if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then pylint --rcfile .pylintrc maxminddb/*.py; fi
4946 - if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then ./.travis-yapf.sh; fi
5047
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1919if sys .version_info [0 ] == 2 or (sys .version_info [0 ] == 3
2020 and sys .version_info [1 ] < 3 ):
2121 requirements .append ('ipaddress' )
22+ if os .environ .get ('SNYK_TOKEN' ):
23+ f = open ('requirements.txt' , 'w' )
24+ [f .write (r + '\n ' ) for r in requirements ]
2225
2326compile_args = ['-Wall' , '-Wextra' ]
2427
3841# Taken from SQLAlchemy, but this same basic code exists in many modules.
3942ext_errors = (CCompilerError , DistutilsExecError , DistutilsPlatformError )
4043
44+
4145class BuildFailed (Exception ):
4246 def __init__ (self ):
4347 self .cause = sys .exc_info ()[1 ] # work around py 2/3 different syntax
You can’t perform that action at this time.
0 commit comments