Skip to content

Commit 5444a67

Browse files
committed
Run snyk checks on latest python release (3.7)
- this repo also requires 'ipaddress' when testing against python 2.7, but it is sufficient that ipaddress is being snyk-tested in https://github.com/maxmind/MaxMind-DB-Reader-python
1 parent 3480e41 commit 5444a67

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,18 @@ before_install:
3232
- sudo ldconfig
3333
- cd ..
3434
- 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"
3536
install:
3637
- pip install -r requirements.txt
3738
- pip install requests_mock pylint coveralls yapf
39+
- "if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then snyk test --org=maxmind; fi"
3840
script:
3941
- coverage run --source=geoip2 setup.py test
4042
- "if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then ./.travis-pylint.sh; fi"
4143
- "if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then ./.travis-yapf.sh; fi"
4244
after_success:
4345
- coveralls
46+
- "if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_PYTHON_VERSION == '3.7' ]]; then snyk monitor --org=maxmind --project=maxmind/GeoIP2-python; fi"
4447
notifications:
4548
email:
4649
on_failure: always
@@ -50,3 +53,7 @@ notifications:
5053
slack:
5154
rooms:
5255
secure: "FZLn7HZnM6GOtIU7+W6tY6zd2y0K4C1ZgIOAiGscWvJydn+Xr63GCT21EPPe9QCulQHz88CWALMD7ZrDdsh6nV0gx0IeE+wq4w7NZYjLokvxs+UMYwuwl57MMrqd7e4byZDC4BLvTQTCvpOHOd8dCHwDXmuBcuyE8zB+Wkndn0I=\n"
56+
57+
env:
58+
global:
59+
secure: "YUqALSGB89cWyKNiBKIZDxdWPl3xjYjkWx2OP1i53W5qcaKgOWco2jv+2iXTPAk3c5x3Py3J7B1SdiNcRWmjfKqrnE47fZYkiP8rk0c/pVMRw0zURpmtRzSReDF0Sh/1ZTODi2rsU52Ei1f++BTEB5m409RMnTEvQtH7XT2sVDk="

0 commit comments

Comments
 (0)