diff --git a/.travis.yml b/.travis.yml index f867e1d..0b641f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,24 +1,35 @@ -language: php +matrix: + include: + - language: php -php: - - 7.1.3 - - 7.2 - - 7.3 + php: + - 7.1.3 + - 7.2 + - 7.3 -before_script: - - cp configuration_sample.php configuration.php - - composer self-update - - composer install --no-interaction - - npm install + before_script: + - cp configuration_sample.php configuration.php + - composer self-update + - composer install --no-interaction -script: - - vendor/bin/phpunit --coverage-clover=coverage.xml - - npm run lint + script: + - vendor/bin/phpunit --coverage-clover=coverage.xml -after_success: - - bash <(curl -s https://codecov.io/bash) + after_success: + - bash <(curl -s https://codecov.io/bash) - # Installs Sensiolabs security checker to check against unsecure libraries - - php -r "readfile('http://get.sensiolabs.org/security-checker.phar');" > security-checker - - chmod +x security-checker - - ./security-checker security:check + # Installs Sensiolabs security checker to check against unsecure libraries + - php -r "readfile('http://get.sensiolabs.org/security-checker.phar');" > security-checker + - chmod +x security-checker + - ./security-checker security:check + + - language: node_js + + node_js: + - "7" + + before_script: + - npm install + + script: + - npm run lint