Skip to content

Commit

Permalink
Travis runs snyk checks on latest php (7.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjack committed Sep 19, 2018
1 parent 0094a80 commit becdb94
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Expand Up @@ -17,13 +17,18 @@ matrix:
before_install: before_install:
- composer install --dev -n --prefer-source - composer install --dev -n --prefer-source
- phpenv rehash - phpenv rehash
- "if [[ $TRAVIS_PHP_VERSION == '7.2' ]]; then sudo apt install -y nodejs; npm install -g snyk; fi"
install:
- "if [[ $TRAVIS_PHP_VERSION == '7.2' ]]; then snyk test --org=maxmind; fi"
script: script:
- mkdir -p build/logs - mkdir -p build/logs
- if [[ $TRAVIS_PHP_VERSION = '7.2' ]]; then vendor/bin/php-cs-fixer fix --verbose --diff --dry-run --config=.php_cs; fi - "if [[ $TRAVIS_PHP_VERSION = '7.2' ]]; then vendor/bin/php-cs-fixer fix --verbose --diff --dry-run --config=.php_cs; fi"
- if [[ $TRAVIS_PHP_VERSION = '7.2' ]]; then vendor/bin/phpcs --standard=PSR2 src/; fi - "if [[ $TRAVIS_PHP_VERSION = '7.2' ]]; then vendor/bin/phpcs --standard=PSR2 src/; fi"
- vendor/bin/phpunit -c phpunit.xml.dist - vendor/bin/phpunit -c phpunit.xml.dist
after_script: after_script:
- php vendor/bin/coveralls - php vendor/bin/coveralls
after_success:
- "if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_PHP_VERSION == '7.2' ]]; then snyk monitor --org=maxmind --project-name=maxmind/GeoIP2-php; fi"
notifications: notifications:
email: email:
on_failure: always on_failure: always
Expand All @@ -33,3 +38,6 @@ notifications:
slack: slack:
rooms: rooms:
secure: "OtowN1lGa5MAhn6gl87aB3kXXeOKLGIb4e9dBud/tPt/1sQDoZVj6m6VWtpsXh6iXL7lWetVbpmeZCydSRumgVMIy7+45uMQPvdoWBFCT+rq67yDb3gyvFknpjBuit0Q91lTDoGTUSgtqk+PSZX5LvDgT4b8WQFBb/dcB35hqis=\n" secure: "OtowN1lGa5MAhn6gl87aB3kXXeOKLGIb4e9dBud/tPt/1sQDoZVj6m6VWtpsXh6iXL7lWetVbpmeZCydSRumgVMIy7+45uMQPvdoWBFCT+rq67yDb3gyvFknpjBuit0Q91lTDoGTUSgtqk+PSZX5LvDgT4b8WQFBb/dcB35hqis=\n"
env:
global:
secure: "Ptt+TYu7h430sdv9WjIlKS6kWdwQQYapv8OYuZZ2sUrcynuHkMw3OMp+p3Y86KAMCd2ZwlOyeLA1V2QrifkiC9i1KmEqiH6eZcrzdt+YgrBK6S1BRjbrhabPBs6iT3ey6NxU+hEgl/+pb2R1VlKi1B5Fw7rJ1S6/34VhvgEpwDc="

0 comments on commit becdb94

Please sign in to comment.